1.2.0 • Published 1 year ago

@xniva/git-shortcuts v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Git Shortcuts

@xniva/git-shortcuts is a cli tool which provides shortcuts for the commanly used git commands.

Example:

use gl for the git log command to view the recent commit

Installation:

Install it globally using the command

npm i -g @xniva/git-shortcuts

List of available commands:

shortcut commandactual git commandaction
glgit logShow the list of commits for the current branch
gsgit statusShow the status of the changes
gbgit branch --show-currentShow the name of the current branch
gcmgit checkout masterSwicth to the master branch
gfgit fetchFetch from the remote
gpmgit pull origin masterPull the changes from the remote master branch
gmmgit merge origin masterMerge the changes from the remote master to the current branch
gphgit push origin HEADPush the current branch and its changes to remote
gsrgit reset --soft HEAD~1Remove the last commit and preserve the changes
ghrgit reset --hard HEAD~1Completely delete the changes of the last commit
glpgit show-branch --no-name HEADPrint the last commit message
glcgit show-branch --no-name HEADCopy and Print the last commit message
1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago