Goit is a version control tool just like Git made by Golang.
brew install JunNishimura/tap/Goit
go install github.com/JunNishimura/Goit@latest
-
init
- initialize Goit, make .goit directory where you init -
add
- make goit object and register to index -
commit
- make commit object -
rm
- remove from the working tree and the index -
branch
- manipulate branches -
switch
- switch branches -
restore
- restore files -
reset
- reset HEAD to the specified state -
status
(NEW FEATURE🎉) - show the working tree status -
log
- show commit history -
reflog
- show reference log -
config
- set config. e.x.) name, email -
cat-file
- show goit object data -
ls-files
- show index -
hash-object
- show hash of file -
rev-parse
- show hash of reference such as branch, HEAD -
update-ref
- update reference -
write-tree
- write tree object -
version
- show version of Goit
- tag
- checkout
- merge
- stash
- revert
- diff
- read-tree
- symbolic-ref
- cherry-pick
- rebase
see Installation above.
cd /home/usr/sample
goit init
echo "Hello, World" > test.txt
goit add test.txt
goit config --global user.name 'Goit'
goit config --global user.email '[email protected]'
goit commit -m "init"
goit rev-parse main
goit cat-file -p `hash`
Perfect!! You now understand the basic of goit🎉
Goit is released under MIT License. See MIT