Skip to content

Instantly share code, notes, and snippets.

@diogovk
Last active February 17, 2016 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogovk/c4602d94099910022304 to your computer and use it in GitHub Desktop.
Save diogovk/c4602d94099910022304 to your computer and use it in GitHub Desktop.
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.
@spjspj
Copy link

spjspj commented Feb 17, 2016

Didn't get a chance to read this before but thanks for the tips!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment