Created
September 4, 2018 14:44
-
-
Save PieterScheffers/192521aef40be086b5c10bb841ed6376 to your computer and use it in GitHub Desktop.
Git Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Force push | |
git push --force | |
# Pull origin when origin has been force pushed (from master branch) | |
git reset --hard origin/master | |
# Base feature branch on new force-pushed master | |
# Assumes feature branch has 2 commits | |
git rebase HEAD~2 myfeature --onto master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment