https://github.com/gazorby/fish-git-check-id
✅ Use multiple ssh identities across git repos
https://github.com/gazorby/fish-git-check-id
fish fish-plugin fish-shell fisher git ssh-key
Last synced: about 2 months ago
JSON representation
✅ Use multiple ssh identities across git repos
- Host: GitHub
- URL: https://github.com/gazorby/fish-git-check-id
- Owner: gazorby
- License: mit
- Created: 2020-04-03T18:20:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-04T16:57:41.000Z (over 5 years ago)
- Last Synced: 2026-02-22T00:27:19.344Z (4 months ago)
- Topics: fish, fish-plugin, fish-shell, fisher, git, ssh-key
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# fish-git-check-id
Ensure you are using the right identity depending on which repo you are working on
## 🚀 Install
Using [fisher](https://github.com/jorgebucaran/fisher) :
```console
fisher add Gazorby/fish-git-check-id
```
## 🔧 Usage
The plugin will create `~/.git-remotes`, that you could fill with your different git remotes, usernames and emails :
```console
# ~/.git-remotes
github.com,email,username
gitlab.company.com,pro_email,pro_name
...
```
This way, when inside a git repo with `gitlab.company.com` remote, `gckid` hook will be executed everytime you call `git commit` to check that the git repo's username and email match the ones specified in `~/.git-remotes` file for this remote.
## 📝 License
[MIT](https://github.com/Gazorby/fish-git-check-id/blob/master/LICENSE)