Checkout a remote branch to a new local branch
git pull
git checkout -b local-branch origin/remote-branch
Remove a remote branch (e.g. from Github once merged)
git push origin --delete <branchName>
Move a submodule
mv dir/submodule newdir/submodule
Edit newdir/submodules/.git file to point to parent .git/modules/submodule dir
Edit ./git/modules/submodule/config and update worktree path
Edit .gitsubmodules in parent to update submodule path
git add -u
git add newdir/submodule