Category: Git


  • How to manage multiple Git repositories with a simple bash function

    In the past I have already worked with a project that consisted of multiple Git repositories in a common project folder. For tracking each repository’s individual state together, Google’s repo tool was used. I ended up using mostly its powerful repo forall subcommand to execute various bash or git commands over the whole or subset…

  • How to store HTTPS credentials for Git in WSL

    If you are stuck on Windows for any reason but got most of your fun Linux tool with you, good chances are you are using Windows Subsystem for Linux (WSL). With it comes a full Linux distribution (I use Ubuntu, but there are plenty of options: Alpine, Debian, Fedore, Kali, openSUSE) backed by their whole…

  • How to git push to multiple remotes with one command

    There are multiple questions with even more answers on this exact question at Stack Overflow. The simplest answer, which I failed to find again, looks like this. Add the following lines to your repo’s .git/config: [code lang=”bash”] [alias] pushall = !git push origin master && git push github master && git push remote3 master [/code]…