How to avoid having to do “git branch –set-upstream”, and instead default to automatically setup remote tracking?

Git v2.37.1 and above If you are using the mentioned version or above you can use this new config entry to automatically setup remote tracking: git config –global push.autoSetupRemote true After that, when you do git push tracking is setup automatically. No need for git push -u origin my_branch A shortcut, which doesn’t depend on … Read more

‘git diff’ doesn’t show enough

The important thing to realize about git diff A B is that it only ever shows you the difference between the states of the tree between exactly two points in the commit graph – it doesn’t care about the history. The .. and … notations used for git diff have the following meanings: So when … Read more

How to see how many repos created from my repo template (GitHub)

Eureka! After reading this – Search based on the contents of a repository, the answer was clear! Search by README.md file content! Use GitHub’s search engine and provide a unique combination of words that appear in your README.md file. This is how I do it for my template – unfor19/terraform-multienv in:readme sort:updated -user:unfor19 “tfmultienv”github.com/search?q=in%3Areadme+sort%3Aupdated+-user%3Aunfor19+%22%60tfmultienv%60%22&type=repositories To … Read more

tech