git: add README.md including GitHub PR tracking command

Ref: #39
This commit is contained in:
Aminda Suomalainen 2022-05-26 12:43:21 +03:00
parent c846c48412
commit ccb3ed96d8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

17
git/README.md Normal file
View File

@ -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