Änderung taggen:
git tag v0.0.1 |
Version auf Server releasen („Titel“ ist letzter commit-Kommentar):
git push origin v0.1.1 |
Terminalbefehle für Einträge in die ~/.gitconfig
:
#Alias git config --global alias.co checkout git config --global alias.br branch git config --global alias.ci commit git config --global alias.am commit ' --all --amend' git config --global alias.st status git config --global alias.unstage 'reset HEAD --' git config --global alias.last 'log -1 HEAD' git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)< %an>%Creset' --abbrev-commit" # Config git config --global merge.conflictstyle diff3 git config --global core.excludesfile ~/bin/gitignore |
Nützliche Befehle:
#Branches detaillierter anzeigen gitk --all |
rebasing
Die Commits im Branch working
soll zu einem einzigen Commit zusammengefasst, und anschließend in Branch master
übernommen werden. Diesmal mittels rebase
anstelle von merge
:
git checkout working git rebase -i bbbb # letzter gemeinsamer commit git checkout master git rebase working # der commit von 'working' wird auf 'master' angewendet |