https://github.com/lapwat/gitkit
Manage your git repos
https://github.com/lapwat/gitkit
Last synced: over 1 year ago
JSON representation
Manage your git repos
- Host: GitHub
- URL: https://github.com/lapwat/gitkit
- Owner: lapwat
- Created: 2023-12-28T14:54:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-30T11:34:31.000Z (over 2 years ago)
- Last Synced: 2025-01-21T04:27:26.703Z (over 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitkit
Manage your Git repositories
## Dependencies
- cd
- git
## Installation
```sh
cargo install --path .
```
## Usage
```
Usage: gitkit [OPTIONS]
Commands:
add Clone a git repository
test Clone a git test repository
cd Print the path to git repository
sync Commit all modifications and push them to remote
help Print this message or the help of the given subcommand(s)
Options:
-u, --user
GitHub username [env: USER=] [default: $USER]
-d, --directory
Directory where your repositories are stored [env: DIRECTORY=] [default: ~/projects]
-t, --tests-directory
Directory where your test repositories are stored [env: TESTS_DIRECTORY=] [default: ~/tests]
-h, --help
Print help
-V, --version
Print version
```
## `cd` command
This program cannot change your current directory.
The `gitkit cd` command prints the path where the git repository should be on your system.
Add this function to your `.bashrc` / `.zshrc`:
```sh
function gkcd () {
cd $(gitkit cd $1) 2>/dev/null
if [ $? -eq 0 ]; then
return 0
fi
cd $(gitkit cd --test $1) 2>/dev/null
}
```