0.0.2 • Published 2 years ago

usefulgit v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

ugit npm.io

git Command line tool

中文简介

Install

npm install usefulgit -g

Usage

You can use ugit or the acronym ug

10 commands are provided:

  • ug recent View recently submitted branches, sorted by time.
  • ug pr To 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 mr 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 make Merge current branch into the release branch。
  • ug cleanup Clean 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, excluding develop, master, production, gray, HEAD, Release/.*branches)
  • ug new-branch Create a new branch.
  • ug home Open the current warehouse in a browser.
  • ug root Switch or view the root directory of the git repository.
  • ug checkout Switch 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 rebase Pull updates and rebase branches. The default target branch is master.
  • ug touch Create 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-1222

Operation example

ug recent

ug recent

ug pr

ug pr

ug cleanup

ug cleanup

ug make

ug make

ug checkout

💡 you can use the c command to switch branches

ug checkout