0.0.2 • Published 3 years ago
usefulgit v0.0.2
ugit 
git Command line tool
中文简介
- Install
- Usage
- Common command(#Common command)
- Operation example(#Operation example)
Install
npm install usefulgit -g
Usage
You can use
ugitor the acronymug
10 commands are provided:
ug recentView recently submitted branches, sorted by time.ug prTo merge commit, you need to provide the information of the merged commit. The last commit information is used by default. (if you follow the branch specification, commit log will be spliced with jira ticket id HR-100010)ug mrTo merge a commit and submit it to a stable branch, you need to provide the information of the merged commit. The last commit information is used by default.ug makeMerge current branch into the release branch。ug cleanupClean up uncommitted branches within 3 months (with the natural month as the limit, for example, November cleans up branches before August, that is, July and July. Includes local and remote, excludingdevelop, master, production, gray, HEAD, Release/.*branches)ug new-branchCreate a new branch.ug homeOpen the current warehouse in a browser.ug rootSwitch or view the root directory of the git repository.ug checkoutSwitch to matching branches, support regular matching, give priority to complete matching, give priority to matching local branches, give priority to matching recent submitted branches, and support'- 'switching to nearest branches.ug rebasePull updates and rebase branches. The default target branch is master.ug touchCreate and add files to the staging area.
Please check the command line help for details.
Common command
# To merge a commit and submit it to a stable branch, you need to provide the information of the merged commit. The last commit information is used by default.
ug mk t1
# Reset the test branch
ug mk devlop -n
# merger branch
ug mk HR-100010
# pull request commit to master
ug pr master
# rebase master branch
ug rebase master
# switch branch
c HR-1222Operation example
ug recent

ug pr

ug cleanup

ug make

ug checkout
💡 you can use the c command to switch branches
