Here is one my of life-saving git command, that allowed me to retrieve lost commit easily in the past few years: Save this alias carefully in your . It will launch gitk displaying the dangling commits, ie, the commits that…
I like to simplify my workflow. I have plenty of aliases to speed up the execution of recurrent tasks, such as rebasing against “master” when I want to submit a patch to a project on GitHub.
For that, I set the git branch where I am hacking to track the upstream remote, not origin. Here is why.
I never liked the way ‘stash’ works in Git. It is not really obvious to use, and moreover, it is a nightmare when a conflict arise during a rebase.
This article discuss about the stash concept in Git, its advantages and disadvantages and why I recommend not to use it at all.
If you are using Github under Windows, without the Github client, this tip can help you avoid password requests on pull and push.
This occurs with both TortoiseGit and Git bash. When you do a git pull , no password is requested if it is a public repository. If it is a private one, or when you will want to push your local changes, a password dialog keeps appearing, even if you have setup your private key properly.