shell command assistant tool
go to the code directory and run the following script:
go install github.com/aronlt/xman@latest
lint all files that added to stash zone, you should install golang-lint first
xman lint
-
lint all files in dir
--dir=true
automatically complete the local code submission and push the git branch to the remote.
-
add review
--r=true
-
add commit message
--m="commit message"
automatically complete local code submission, merge from the pointed branch,
detect conflicts, and push to the remote branch.
-
add commit message
--m="commit message"
-
merge from branch
--from="branch"
automatically complete local code submission, merge into the pointed branch,
detect conflicts, and push to the remote branch.
-
add commit message
--m="commit message"
-
merge to branch
--to="branch"
local code temporarily stored (stash).
the stash code is restored interactively
auto tag code, support prefix, suffix
-
tag prefix
--p="debug"
-
tag suffix
--s="demo"
list local branch info
list remote branch info
list tags info
list all branch last commit info
checkout to another branch, submit local branch
-
checkout to new branch
--b="branch_name"
-
checkout new branch from local branch
--cf="from_branch"