1
0
mirror of https://gitea.blesmrt.net/mikaela/gist.git synced 2024-12-25 20:32:44 +01:00
gist/git/README.md

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