commit/branch/workdir explorer for git
gitin
is a commit/branch/status explorer for git
gitin is a minimalist tool that lets you explore a git repository from the command line. You can search from commits, inspect individual files and changes in the commits. It is an alternative and interactive way to explore the commit history. Also, you can explore your current state by investigating diffs, stage your changes and commit them.
/
to start a search after running gitin <command>
)gitin status
then press enter
to see diff or space
to stage)gitin status
then press c
to commit or m
to amend)gitin status
then press p
)gitin branch
press enter
to checkout)gitin --help
, also you can get help for individual subcommands (e.g. gitin log --help
)go get -d github.com/isacikgoz/gitin/cmd/gitin
cd
into $GOPATH/src/github.com/isacikgoz/gitin
make install
(cmake
and pkg-config
are required, also note that git2go will be cloned and built)The tap is recently moved to new repo, so if you added the older one (isacikgoz/gitin), consider removing it and adding the new one.
brew tap isacikgoz/taps
brew install gitin
usage: gitin [<flags>] <command> [<args> ...]
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-v, --version Show application version.
Commands:
help [<command>...]
Show help.
log
Show commit logs.
status
Show working-tree status. Also stage and commit changes.
branch
Show list of branches.
Environment Variables:
GITIN_LINESIZE=<int>
GITIN_STARTINSEARCH=<bool
GITIN_DISABLECOLOR=<bool>
GITIN_VIMKEYS=<bool>
Press ? for controls while application is running.
export GITIN_LINESIZE=5
GITIN_STARTINSEARCH=true
GITIN_DISABLECOLOR=true
GITIN_VIMKEYS=false
cd
into it.make build-libgit2
(this will satisfy the replace rule in the go.mod
file)go run --tags static cmd/gitin/main.go --help
commandSee the credits page