An open API service indexing awesome lists of open source software.

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.

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).