Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfornoff/gitctx
Tool for managing Git committer information (e.g., email, name)
https://github.com/jfornoff/gitctx
configuration-management git profile-manager
Last synced: 14 days ago
JSON representation
Tool for managing Git committer information (e.g., email, name)
- Host: GitHub
- URL: https://github.com/jfornoff/gitctx
- Owner: jfornoff
- License: mit
- Created: 2019-02-18T06:07:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-01T15:33:57.000Z (over 5 years ago)
- Last Synced: 2024-11-12T00:38:57.957Z (2 months ago)
- Topics: configuration-management, git, profile-manager
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GITCTX
When committing to Git, your email address and name are attached to the commits. If you are like me, you want to have different configurations based on the project you're working on (e.g., for your job and open-source work).
`gitctx` makes this simple.
- `gitctx create` establishes a new context with name and email
- `gitctx use` hooks up the configuration into a local Git repositoryThis functionality works on a per-project basis, this is how it works:
```shell
cd
gitctx use
# Select the right context# Validate everything is as you expect
git config --get user.name
git config --get user.email
```This functionality is backed by adding an [`[include] path=`](https://git-scm.com/docs/git-config#_includes) to `.git/config`.
## Future features
- [ ] Delete / Edit contexts
- [ ] Incorporate GPG signing information into contexts
- [ ] Detect whether project already uses a `gitctx` context