This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, you must get the previous commit sha, the one before the forced push: | |
## Hit through terminal | |
curl -u <username> https://api.github.com/repos/:owner/:repo/events | |
# Then you can create a branch from this sha: | |
## Hit through terminal | |
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was looking how to pin Git Shell to the taskbar, | |
I got this answer from Github support (hope it can help other people) : | |
Hi Fabien, | |
Windows is annoying in that it doesn't let you pin certain items to the taskbar. | |
However, there is a clever way to trick it into allowing you to do this. | |
1) Right-click on the 'Git Shell' shortcut and go to the 'Target' text box | |
2) Add the word 'explorer' in front of the line |