Skip to content

Instantly share code, notes, and snippets.

@ferrao
Last active May 24, 2021 15:11
Show Gist options
  • Save ferrao/4d31a5585ffd0d0c35a49aa2ae7b1190 to your computer and use it in GitHub Desktop.
Save ferrao/4d31a5585ffd0d0c35a49aa2ae7b1190 to your computer and use it in GitHub Desktop.
Git most used

Update fork from upstream

git fetch upstream master
git merge upstream/master

Deploy from branch

Overwrite local staging branch (tracking upstream) with master(upstream fork) :

git checkout staging
git reset --hard upstream/master
git push upstream +staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment