Using custom diff tool with `git show`

Looks like you’re looking for the –ext-diff option. Here’s what git show docs say about it: –ext-diff Allow an external diff helper to be executed. If you set an external diff driver with gitattributes, you need to use this option with git-log and friends.

Git – remote: fatal: You are on a branch yet to be born

Edit, September 2020: This is becoming more common because people are renaming existing master branches to main or similar in various server-side bare repositories. For a TL;DR, if you’ve done this in a server-side bare repository—or made a repository with git init –bare without also updating the initial master part—you will want to adjust the … Read more

Pulling changes from fork parent in Git

Expanding on other answers, these are the steps I took on a fork I had of tsc-watch: git remote add upstream https://github.com/gilamran/tsc-watch.git git fetch upstream git merge upstream/master git push Explained: adding the remote server as upstream (alias) fetch all changes from the upstream remote merge changes from upstream/master branch into my current branch push … Read more

Running Git through Cygwin from Windows

I confirm that git and msysgit can coexist on the same computer, as mentioned in “Which GIT version to use cygwin or msysGit or both?”. Git for Windows (msysgit) will run in its own shell (dos with git-cmd.bat or bash with Git Bash.vbs) Update 2016: msysgit is obsolete, and the new Git for Windows now … Read more

HEAD detached at origin/master

As CommuSoft says, you’re not on master. You’re in “detached HEAD” mode. You get that any time you explicitly check out something that is not a (local) branch name: $ git checkout origin/master # detach to “remote branch” or if there’s a tag v1.7: $ git checkout v1.7 # detach to tag and you can … Read more

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