Git refs merge vs head in pull request

The refs/pull/<number>/merge is a reference created by GitHub to keep track of what would happen if a pull request was merged. It references the merge commit between refs/pull/<number>/head and the destination branch (e.g. master). You can think of it as a “future” commit. GitHub (as well as other Git-based collaboration platforms) use this technique to … Read more

Connect to Git repository with SSH using Visual Studio 2017

I finally managed to make it work, using PuTTY’s Pageant authentication agent instead of ssh-agent, and following the steps mentioned here (it’s for Visual Studio Code, but works for Visual Studio 2017 and I guess it should work for any application that uses the “official” Git for Windows). Since I already had Pageant installed and … Read more

Multiple .gitignore in subfolders

Answer is: Yes, it is possible to have a .gitignore file in a subfolder. Documentation: When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome): Patterns read from … Read more

Disable enter passphrase for each commit

default-cache-ttl max-cache-ttl This is the correct way to do this. The default timeout there is 10 minutes so if there are more then 10 minutes between your commits you would have to extend the time. C:\Users\SashaChernykh.gnupg\gpg-agent.conf This is not the correct path. This would be the path on a GNU/Linux system. The Home directory for … Read more

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