Git Submodules – keep a Git repository as a subdirectory of another Git repository

https://git-scm.com/book/en/v2/Git-Tools-Submodules Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate. Starting with Submodules Let’s start by adding an existing Git repository as a submodule of the repository that we’re working on. $ git submodule add…

Read More

Git Credentials: git multiple user names for the different projects within the same system

Just use –local instead of –global. In fact, local is the default so you can just do in each repo: $ git config user.email personal@example.org $ git config user.name “whatf hobbyist” Using Git’s credential helpers https://git-scm.com/docs/gitcredentials gitcredentials – providing usernames and passwords to Git SYNOPSIS $ git config credential.https://example.com.username <my_user_name> $ git config credential.helper “$helper…

Read More