git Notes

This page needs some formatting, but includes useful git information

Add a new submodule in existing repo

git submodule add <url for repo> [directory for submodule]

Update submodules in newly cloned repo

git submodule update --init --recursive

Update submodule remote url

git submodule set-url -- <submodule path> <url for repo>

Push tag to remote

git push <remote> tag <tag name>

Store credentials

NOTE: This will store credentials in plaintext on your disk

git config --global credential.helper store