Last active
April 6, 2017 13:44
-
-
Save yaroslavvb/bdb0a92f2a516ebbe2d386c48f5e2c45 to your computer and use it in GitHub Desktop.
TensorFlow github recipes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Making Pull Request | |
First, click "Fork" on github tensorflow page | |
Then in Terminal: | |
export user=yaroslavvb | |
export branch_name | |
git clone https://github.com/$user/tensorflow.git | |
cd tensorflow | |
git remote add y https://github.com/$user/tensorflow | |
git remote add tf https://github.com/tensorflow/tensorflow.git | |
git fetch tf | |
git checkout tf/master -b $branch_name | |
git push --set-upstream y | |
Then in "bugfix" branch of your tensorflow fork on Github, find file, click "Edit" button, edit file, then click commit, | |
then click "Pull Requests" and select tensorflow/master on left and /tensorflow:bugfix on right. If master head moves while | |
the PR is going through, you can do | |
git rebase tf/master | |
git push -f y | |
# Never do a git pull in your PR branch, that'll dump all the new commits into your PR | |
2. Rebase current branch without losing results of ./configure | |
git fetch tf | |
git stash | |
git rebase tf/master | |
git stash pop | |
git checkout --theirs -- tensorflow/core/platform/default/build_config.bzl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment