https://github.com/flakey5/git-profile
Tool for managing multiple Git configurations.
https://github.com/flakey5/git-profile
dotnet git
Last synced: about 2 months ago
JSON representation
Tool for managing multiple Git configurations.
- Host: GitHub
- URL: https://github.com/flakey5/git-profile
- Owner: flakey5
- License: mit
- Created: 2022-06-19T02:20:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-04T23:02:41.000Z (about 4 years ago)
- Last Synced: 2025-04-03T08:35:53.274Z (over 1 year ago)
- Topics: dotnet, git
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-profile
Tool for managing multiple Git configurations. This only handles stuff in the `~/.gitconfig` file and not the authentication side of it.
## Usage
* `git-profile help` - Print usage
* `git-profile show` - Print what configuration you're currently using. Same as running the program without any arguments.
* `git-profile list` - List all profiles
* `git-profile switch ` - Switch to a profile
* `git-profile create ` - Create a new profile. This does not switch you to the new profile.
* `git-profile edit ` - Edit a profile
* `git-profile delete ` - Delete a profile
## Getting started
When you first run it, it will ask you for your preferred text editor and what you want your first profile to be named. Then it's just a matter of filling out the configuration file which is just a `.gitconfig` file but named (ex/ `testing123.gitconfig`).
Once you're done with that just run `git-profile switch ` and you're good to go.
## Compiling
This is just a .NET 6 console app, so open the solution in `src/` and build in Visual Studio or restore & build using the .NET CLI. The only NuGet dependency is Newtonsoft.Json.
## License
See [LICENSE](./LICENSE).