Skip to content

Instantly share code, notes, and snippets.

namzo /
Last active May 11, 2020
Git workflow

1. Create new branch with changes in master

git checkout -b [feature branch name]

2. Add changes and Commit

git commit -a -m "Commit message"

3. Push changes to remote

git push origin [feature branch name]


namzo /
Last active May 11, 2020
Pull changes from feature branch to master

1. Update your master branch:

git checkout master
git pull --rebase origin master

2. Merge changes from Master to feature branch

git checkout [feature branch name]
git merge --no-ff master

3. Check if your changes has been included (Optional)

git log
You can’t perform that action at this time.