Last active
November 22, 2017 07:25
-
-
Save teiling88/24bb89b75974f3666ce4 to your computer and use it in GitHub Desktop.
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
git rebase -i HEAD~2 (squash) letzten 2 Commits | |
git rebase -i master alle Commits die im aktuellen Branch mehr enthalten sind als im master | |
git rebase --continue (nach gelösten Konflikten weiter machen) | |
git rebase --abort (rebase abrechen) | |
git push --force-with-lease http://movingfast.io/articles/git-force-pushing/ | |
git pull --rebase origin develop (rebasing) | |
git branch -d bugfix/fix (lokalen branch löschen) | |
git branch -D bugfix/fix (lokalen branch löschen ohne wenn und aber ;)) | |
git cherry-pick <commitId> | |
git cherry-pick -m 1 <commitId> cherry pick merge commits | |
git pull --rebase upstream master eigenen Fork vom originalen upstream aktualisieren | |
git revert -m 1 [sha_of_C8] merge commit reverten | |
git push --delete origin tagname tag löschen | |
git remote rename a b | |
git remate add localname git@... | |
https://git-scm.com/docs/git-reflog | |
To get real name and email associated to the commit, you might use: | |
git show --format="%aN <%aE>" COMMIT_ID | |
static commands: | |
git diff v3.0.18 v3.0.19 --shortstat | |
git alias | |
git config --global alias.devbranch "!f() { git fetch origin develop; git checkout -b $1 origin/develop; git push --set-upstream origin $1; }; f" | |
git devbranch task/foobar | |
Author eines commits nachträglich ändern: | |
- git rebase -i 3e70179da5b120dd783a43ee9d4353d430a42413 | |
- die commitid nehmen vor meinem Commit | |
- meinen commit zum bearbeiten (edit) auswählen | |
- git commit --amend --author="Thomas Eiling <[email protected]>" | |
- git rebase --continue | |
- git push origin --force-with-lease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment