Skip to content

Instantly share code, notes, and snippets.

@h09shais
Created October 8, 2019 12:01
Show Gist options
  • Save h09shais/8f240e7caf2dbc888dd54fde6f78624d to your computer and use it in GitHub Desktop.
Save h09shais/8f240e7caf2dbc888dd54fde6f78624d to your computer and use it in GitHub Desktop.
Tip to avoid dirty commits

Tip to avoid "dirty commits" When you create a new branch, instead of doing

git checkout develop
git checkout -b [branch-name]

do

git checkout -b [branch-name] origin/develop

When you merge new changes into your branch from develop, instead of doing

git checkout develop
git pull
git checkout [branch-name]
git merge develop

do

git checkout [branch-name]
git merge origin develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment