shell-git-tools

1.1.2 • Public • Published

Install

npm install shell-git-tools -g

We suggest that you adopt a global installation so that you can use it anywhere

If you have adopted a local installation, you will need to manually configure the usage path

Usage:

[-u[d] [branchName ... ...]] (push)

        git add . 
		
        git commit -m [Your Current BranchName] or [Designated BranchName] 
		
        git push origin HEAD:author-[BranchName]
        
        if you used -ud,you will get A detailed commit description
        if you used multiple branchName,Use space splitting

[-p[d]] (pull)

        git checkout master
		
        git pull
		
        [ git branch -d [Your Old Branch] ]

[-l [commitId] [-a] Author …… [-len] limitCount] (log)

        check custom logInfo
		
        commitId ……: check single/multiple origin log detail
		
        -a Author ……: to obtain information about the designated author
		
        -len limitCount: default 20 to limit result count

Example

gt -u
gt -u branchName
gt -u branchName commitDesc1 commitDesc2 ……
gt -p
gt -pd
gt -l
gt -l commit
gt -l commit1 commit2 ……
gt -l -len limitCount
gt -l -a authorName
gt -l -a authorName1 authorName2 ……
gt -l -a authorName -len limitCount

Readme

Keywords

Package Sidebar

Install

npm i shell-git-tools

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

7.54 kB

Total Files

3

Last publish

Collaborators

  • wjsljc