git

Amend the last commit

git commit --amend
git commit —-amend —-no-edit

Squash commits

git rebase --interactive --root

Force squash commits - e.g. down to root commit

rm -rf .git
git init
git add .
git commit -m "Initial commit"

Forget file after adding to .gitignore

git rm --cached CREDENTIALS.py

Push tags to origin

git push origin --tags

General force push

git push -—force origin

'SVN update'

Something along the lines of the below should bring underlying versions up to date:

git stash
git pull
git stash pop

Show remote URL

git remote show origin

Useful resources

Download one folder from repo

Use DownGit