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 -
restore
(NEW FEATURE🎉) - restore files -
log
- show commit history -
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
- rm
- switch
- checkout
- branch
- merge
- stash
- reset
- revert
- diff
- read-tree
- symbolic-ref
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 uesr.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