chriswalz / bit
- среда, 14 октября 2020 г. в 00:23:42
Go
Bit is a modern Git CLI
bit
is an experimental modernized git CLI built on top of git that provides happy defaults and other niceties:
bit add
or bit checkout
bit sync
that vastly simplify your workflowbit release
& bit info
cURL
(Simplest way to install)curl -sf https://gobinaries.com/chriswalz/bit | sh;
curl -sf https://gobinaries.com/chriswalz/bit/bitcomplete | sh && echo y | COMP_INSTALL=1 bitcomplete
go
(Harder way to install)Caveats: GOPATH and GOBIN need to be set. Verify with go env
. If they are not set, add this to your .bashrc or .bash_profile etc. AND open new terminal
export GOPATH=$HOME/go
export GOBIN=$(go env GOPATH)/bin
GO111MODULE=on go get github.com/chriswalz/bit@latest;
GO111MODULE=on go get github.com/chriswalz/bit/bitcomplete@latest;
COMP_INSTALL=1 bitcomplete;
go
(For Windows Users)go env -w GO111MODULE=on
# if latest is not working, replace it with the latest tag found here https://github.com/chriswalz/bit/releases
go get github.com/chriswalz/bit@latest;
bit
zinit
zinit ice lucit wait"0" as"program" from"gh-r" pick"bit"
zinit light "chriswalz/bit"
Note: On Windows only the interactive prompt completion works not classic tab completion
Verify installation with:
bit
Dependencies: Git
Platform Support:
Create a new commit
bit save [commit message]
Save your changes to the current branch [amends current commit when ahead of origin]
bit save
Synchronize your changes to origin branch (Beta)
bit sync
You have access to ALL git commands as well. 90% of the time the above commands will have you covered.
bit commit -m "I can still use git commands"
, bit pull -r origin master
bit switch example-branch
Branch does not exist. Do you want to create it? Y/n
yes
Switched to a new branch 'example-branch'
[Makes some changes]
bit save "add important feature"
[fix an error for important feature]
bit save
[push changes to origin]
bit sync
[two days later confirm your branch is in sync with origin]
bit sync
bit sync
bit
is fully compatible with git
. All features of git are available if need be.Thanks to Gitless, git-extras, researchers in the field and of course the developers of git
itself! Also, thanks to go-prompt for the interactive prompt library
v0.5
bit switch
, bit co
, bit checkout
will show promptv0.4
bit sync
go binaries are self-contained so uninstalling simply requires deleting the binary(ies)
rm `which bit`
rm `which bitcomplete`