Git Configuration
Aliases
A set of Git aliases which follow the idea "say what you mean" rather than remember the plumbing term of a specific command.
abandon
abandons all local changes leave a clean repository.amend
amends the last commit, shorthand forgit commit --amend
.unstage
unstage staged changes, shorthand forgit reset -q HEAD --
.squash
perform an interactive rebase to squash all commits since branching, shorthand forgit rebase -i --fork-point
.list
list local branches, a shorthand forgit branch
.create
creates a new branch, shorthand forgit checkout -b
.delete
deletes an existing branch, shorthand forgit branch -D
.name
the name of the current branch.last
the name of the last branch checked out before the current branch.checkout-last
checkout the last branch, shorthand forgit checkout $(git last)
.publish
push and set the tracking branch of a local branch to origin, shorthand forgit push -u origin <branch>
.unpublish
delete a remote branch, shorthand forgit push origin :<branch>
.force
force push local changes to the remote, shorthand forgit push --force-with-lease
.changes
compare the list of commits on the local branch to another branch, e.g. when on a feature branchgit changes master
lists the commits which are not present on the master branch.save
like pushing to the stash but attached to a branch, shorthand forgit commit -am temp
.load
like popping from the stash but attached to a branch, shorthand forgit reset --mixed HEAD
.
Description
Languages
Shell
100%