Git Cheatsheet Start rebase of all history including initial commit git rebase -i --root Change executable flag of files git update-index --chmod=+x foo.sh git update-index --chmod=-x bar.sh Change commit author and date git commit --amend --author="Joe McChanged <[email protected]>" --no-edit git commit --amend --date="Wed Feb 16 14:00 2011 +0100" --no-edit Remove submodule Remove tracking of submodule directory: git rm --cached submodule_dir Remove corresonding section from .gitmodules Remove section from .git/config Make commit Remove sibmodule directory and .git/modules/submodule_dir