Last active
March 10, 2021 15:29
-
-
Save michael-martinez/9706adcd8311819228d82dfd1698c65f to your computer and use it in GitHub Desktop.
gitCheatsheet
This file contains hidden or 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
To pull before push without merging: | |
git reset --soft HEAD~ && git stash && git pull && git stash pop | |
Troubleshoot pbxproj file (Optional): | |
sed -i '' '/<<<<</d' *.xcodeproj/project.pbxproj | |
sed -i '' '/=====/d' *.xcodeproj/project.pbxproj | |
sed -i '' '/>>>>>/d' *.xcodeproj/project.pbxproj | |
To pick granular setup commits: | |
git cherry-pick <hash> | |
To setup CI tool: | |
git checkout -b setup-travis && touch .travis.yml && git commit -m "Setup .travis.yml" && git push | |
vi .travis.yml && git commit -m "Fix Setup .travis.yml" && git push | |
git checkout master && git merge setup-travis | |
Rebasing: | |
git fetch | |
git rebase -i origin/develop | |
git push --force-with-lease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment