Last active
February 17, 2016 12:50
-
-
Save diogovk/c4602d94099910022304 to your computer and use it in GitHub Desktop.
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
in master: | |
# create and checkout new branch | |
git checkout -b my_feature_1 | |
# work | |
<my_feature_1> git commit | |
# I'm ready to push feature_1 | |
# check which remote you want to push to (in exemple below, origin) | |
git remote -v | |
origin https://github.com/diogovk/fullstack-webdev-catalog (fetch) | |
origin https://github.com/diogovk/fullstack-webdev-catalog (push) | |
# push the branch you created | |
git push origin my_feature_1 | |
# Now I want to work on feature_2 which is not depedant in feature_1 | |
# So I'll create another branch based on master | |
git checkout master | |
<master> git checkout -b my_feature_2 | |
<feature_2> | |
# do the same as with feature_1 | |
# work | |
<my_feature_2> git commit | |
git push origin my_feature_2 | |
In github, you'll be able to create one pull request for each of your branches. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Didn't get a chance to read this before but thanks for the tips!