Created
September 12, 2016 08:19
-
-
Save praveenkumar/8b512f5435b4f3a0e43a6bae93402353 to your computer and use it in GitHub Desktop.
Git workflow for PR's
This file contains hidden or 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
| # Here I am using forked version adb-utils (https://github.com/projectatomic/adb-utils) | |
| # which I cloned to my box and add remote to upstream also | |
| git clone [email protected]:praveenkumar/adb-utils.git | |
| git remote add upstream https://github.com/projectatomic/adb-utils | |
| # My git remote will be look like | |
| git remote -v | |
| origin [email protected]:praveenkumar/adb-utils.git (fetch) | |
| origin [email protected]:praveenkumar/adb-utils.git (push) | |
| upstream https://github.com/projectatomic/adb-utils.git (fetch) | |
| upstream https://github.com/projectatomic/adb-utils.git (push) | |
| # Now I want to work on any fix or feature. | |
| git checkout master | |
| git pull upstream master # make sure I synced my local master with upstream master | |
| git checkout -b fix_xyz master # Create branch with based on master | |
| # Implement required feature or fix bug | |
| git add <file_changed> | |
| git commit -m <proper_commit_message> | |
| git push origin fix_xyz | |
| # Go to github and you will see PR pop up window. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment