Git ‘fatal: No such ref: HEAD’

You’ve lost your HEAD so you’ll need to recreate it. The simplest thing to do is this. echo ref: refs/heads/master >.git/HEAD Now you should be able to run other git commands and see where you’re at. (Although, in theory, you could attempt to do git symbolic-ref HEAD refs/heads/master newer git versions don’t recognize a .git … Read more

Can TortoiseMerge be used as a difftool with Windows Git Bash?

The following settings work fine for me. However, I am using TortoiseGit not TortoiseSVN. Notice the difference in the parameters for diff. [diff] tool = tortoisediff [difftool] prompt = false [merge] tool = tortoisemerge [mergetool] prompt = false keepBackup = false [difftool “tortoisediff”] cmd = \””c:/Program Files/TortoiseGIT/bin/TortoiseGitMerge.exe”\” -mine “$REMOTE” -base “$LOCAL” [mergetool “tortoisemerge”] cmd = … Read more

How to perform rebase (squash) using tortoisegit

This works for me using TortoiseGit 1.7.12: Right-click on the working directory where you want to do an interactive rebase and choose TortoiseGit -> Show log from the context menu. In the appearing “Log Messages” dialog, right-click on the most recent commit that you would not like to rebase anymore and choose Rebase master onto … Read more

Git with SSH on Windows

I fought with this problem for a few hours before stumbling on the obvious answer. The problem I had was I was using different ssh implementations between when I generated my keys and when I used git. I used ssh-keygen from the command prompt to generate my keys and but when I tried “git clone … Read more

Suddenly getting “No supported authentication methods available” when pushing to github

For me there was a problem to perform actions against the remote repository only when using TortoiseGit, through CMD / GitBash there have been no issue at all. So what I did was Very simple: I opened TortoiseGit–>Settings –> Network and in SSH Client I changed to “C:\Program Files\Git\usr\bin\ssh.exe” instead of “TortoiseGitPlink.exe”.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)