Hints 1/2 (Save time)
# Sets the push strategy to 'use the same name on remote'
git config --global push.default simple
# Deletes local references for deleted remote branches
git config --global fetch.prune 1
# Store passwords in MAC OS password manager
git config --global credential.helper osxkeychain
# Create an alias for an compressed log output
git config --global alias.ultimate-log "log --graph --oneline --decorate"
Slide 27
Slide 27 text
Hints 1/2 (Clean repository)
# Removes all merged local branches, but 'master' branch
git branch | grep -v "master" | xargs git branch -d
# Removes all remote branches, merged into master
git branch -r --merged master | \
ack -v master | \
sed -e 's/\// :/' | \
xargs -n2 git push
Slide 28
Slide 28 text
Recommended sources
● GIT Website, https://git-scm.com/docs
● Bitbucket Website, https://de.atlassian.com/git/tutorials
● Git in Practice, Mike McQuaid, Manning
● Pro Git 2nd Edition, Scott Chacon and Ben Straub, apress
Slide 29
Slide 29 text
git reset -hard
Slide 30
Slide 30 text
end of presentation
Author: Markus Hanses
Date: 2018-12-20