Git

Add remote:

git remote add site user@host:path

Merge only specific files from another branch:

git checkout source_branch <paths>...

Remove all branches except of master and the current one:

git branch | grep -v "master" | xargs git branch -D

Remove the last commit:

git reset HEAD~1
git push --force

Shallow clone: git clone --depth 1 repo