git submodule update --init --recursive
git submodule update --recursive
git submodule update --recursive --remote
Git clone a specific commit
Downloading a specific commit from github
I need to download a specific version of a project from GitHub.
[Read More]Create a GitHub repo from a local git
Adding a local project to Github from Windows using Visual Studio 2015 and GitHub Desktop.
This is not the best way to add a local project to github. It is just a way that works using Visual Studio and GitHub Desktop with a small manual intervention.
A shorter path is possible by letting GitHub Desktop create the repository.
[Read More]Multiple SSH Keys
Managing multiple SSH keys for Github and Visual Studio Online
After generating a new key for my Visual Studio Online code repository I have to tell git which key to use for each connection.
Create a file in ~/.ssh/config
Add the following content
# Uncomment to enable debugging.
# Levels are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
# LogLevel DEBUG
Host ssh.dev.azure.com
IdentityFile ~/.ssh/id_rsa_visualstudio
Host vs-ssh.visualstudio.com
IdentityFile ~/.ssh/id_rsa_visualstudio
Host github.com
IdentityFile ~/.ssh/id_rsa_github
# tell ssh-agent to not try keys
Host *
IdentitiesOnly yes