mirror of
https://github.com/AlexBocken/mykb.git
synced 2025-02-16 12:15:21 +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`.
|
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)
|
- [Git Website](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user