- Create a branch with
git branch [your_branch_name]
- Checkout the branch with
git checkout [your_branch_name]
- Publish your branch with
git push origin [your_branch_name]
- Do some work, commit your changes
- When your branch is done, checkout master with
git checkout master
- Pull down any changes from master with
git pull
- Checkout your branch again and make sure it is up to date with master using
git merge master
- If there are any conflicts, fix them. If not, you may need to exit the Vim text editor using
:wq
- Push your changes up to Github with
git push origin [your_branch_name]
- Create a pull request by clicking the green pull request button in Github
- Describe your pull request and wait for approval from the repo owner.
-
-
Save celestelayne/752e399af831924a92d770c46cc74a25 to your computer and use it in GitHub Desktop.
Creating your own branchs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment