Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git: Feature branch workflow
git checkout -b feature-branch master
git status
git add <some-file>
git commit
git push -u origin feature-branch
git push
git checkout master
git pull
git pull origin feature-branch
git push
@apricot13
Copy link
Author

apricot13 commented Apr 20, 2021

git checkout -b feature-branch master
 
git status
git add <some-file>
git commit
 
git push -u origin feature-branch
git push
 

// rebase
git checkout master
git pull
git checkout feature-branch
git rebase origin/master
git push --force -u origin feature-branch

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