create-git-alias

1.7.0Β β€’Β PublicΒ β€’Β Published

create-git-alias

πŸ‘¨πŸ» CLI tool to apply some useful git aliases

This is an interactive process. You get to choose what you want

npm create git-alias

options

--all

Show all choices - even ones that are identical to the ones I have

npm create git-alias --all

--base <BASE_BRANCH>

Base branch for scripts doing rebase and deleting current branches. Defaults to "master"

aliases

alias Description
aliases print all git aliases
back Reset to previous commit
branches Verbose, sorted list of branches
far fetch from remote ["<BASE_BRANCH>" or 1st argument] and rebase
feature Create a branch starting with today's date
fix add, amend the current commit and push some fixes
from how many commit since <commit id>
get start a repo by remote URL (1st argument) with branch ["<BASE_BRANCH>" or 2nd argument]
l pretty log
last Show diff of last <N> commits (defaults to 1)
mend commit amend with no edits
merged After remote merge, trash current branch and pull from ["<BASE_BRANCH>" or 1st argument]
please git push <this_branch> --force-with-lease
pruner prune aggressive
purge remove local and remote branches (accepts many)
root Change directory to repository root
s Short status with branch name
sum Generate a summary of pending changes (1st argument[optional] can change the base branch)
trash Move to ["<BASE_BRANCH>" or 1st argument] and delete current local branch
whereami What branch am I on?
wip add everything, commit with a random commit message and push to remote origin
yolo a commit with a random commit message from whatthecommit
yolt amend commit with a random commit message from whatthecommit

Package Sidebar

Install

npm i create-git-alias

Weekly Downloads

0

Version

1.7.0

License

Unlicense

Unpacked Size

13.1 kB

Total Files

12

Last publish

Collaborators

  • omrilotan