Git
Aliases
git config --global user.name "<full name>"
git config --global user.email "<email address>"
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
Credential Helper for HTTPS Upstreams
Go to the Git repository folder
git config credential.helper store
Credentials are stored when the user logs in the next time
Submodules
Add submodule
git clone git@github.com:thomai/submodule-main.git
cd submodule-main
git submodule add git@github.com:thomai/submodule-test1.git
git submodule add git@github.com:thomai/submodule-test2.git
git add .
git ci -m "Added submodules"
Update submodule to latest commit on branch
cd submodule-main
cd submodule-test1
git pull
cd ../
git add .
git ci -m "Updated submodule-test1"
git push
Clone repository recursively
git clone --recurse-submodules git@github.com:thomai/submodule-main.git