mirror of
https://github.com/AlexBocken/mykb.git
synced 2024-11-21 10:49:38 +01:00
added pass-git-helper config instructions to git
This commit is contained in:
parent
d57858def9
commit
779518ce61
22
docs/GIT.md
22
docs/GIT.md
@ -80,7 +80,27 @@ git commit -am 'Fix for README file'
|
||||
```
|
||||
|
||||
Now push it to the server using `git push origin master`.
|
||||
## Configuration
|
||||
### Pass integration
|
||||
pass is a CLI password manager. It allows for git integration.
|
||||
First, install `pass-git-helper` from the AUR
|
||||
```sh
|
||||
paru -S pass-git-helper
|
||||
```
|
||||
Set pass as your credential helper in git:
|
||||
```sh
|
||||
git config --global credential.helper /usr/bin/pass-git-helper
|
||||
```
|
||||
In `~/.config/pass-git-helper/git-pass-mapping.ini`, create rules in the following way:
|
||||
|
||||
### Further Info
|
||||
```ini
|
||||
[github.com]
|
||||
target=dev/github
|
||||
|
||||
[*.fooo-bar.*]
|
||||
target=dev/fooo-bar
|
||||
```
|
||||
|
||||
## Further Info
|
||||
|
||||
- [Git Website](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server)
|
||||
|
Loading…
Reference in New Issue
Block a user