From ccb3ed96d8524788eefa09da8ad03419e931e952 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 26 May 2022 12:43:21 +0300 Subject: [PATCH] git: add README.md including GitHub PR tracking command Ref: #39 --- git/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 git/README.md diff --git a/git/README.md b/git/README.md new file mode 100644 index 0000000..fb8da76 --- /dev/null +++ b/git/README.md @@ -0,0 +1,17 @@ +# 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` + +```bash +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. + +* TODO: Figure out if this also works for GitLab or what is the GitLab version? + Gitea too. + * https://gitea.blesmrt.net/mikaela/gist/issues/39