gist/git/README.md
2024-06-19 08:53:27 +03:00

1.3 KiB

Random git files

  • gitignore - .gitignore templates I may or may not use
  • etc/gitconfig - a /etc/gitconfig for accepting signed pushes

Tracking GitHub pull requests with git

git config --add remote.GITHUB.fetch '+refs/pull/*/head:refs/remotes/GITHUB/pr/*'

Replace GITHUB with the git remote name. I have picked this up from a dead git.io link.

Debugging git

Git obeys some environment variables that may be helpful for troubleshooting

  • GIT_CURL_VERBOSE=1 results to more information what git is doing e.g. during cloning.
  • GIT_TRACE=1 & GIT_TRACE2=1 give very deep debug information