create-git-alias

👨🏻 `npm create git-alias` - interactively apply useful git aliases

Usage no npm install needed!

<script type="module">
  import createGitAlias from 'https://cdn.skypack.dev/create-git-alias';
</script>

README

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 | far | fetch from remote "<BASE_BRANCH>" 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 | get | start a repo by remote URL | l | pretty log | mend | commit amend with no edits | merged | After remote merge, trash current branch and pull from "<BASE_BRANCH>" | 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 | trash | Move to "<BASE_BRANCH>" 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