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.
- abandonabandons all local changes leave a clean repository.
- amendamends the last commit, shorthand for- git commit --amend.
- unstageunstage staged changes, shorthand for- git reset -q HEAD --.
- squashperform an interactive rebase to squash all commits since branching, shorthand for- git rebase -i --fork-point.
- listlist local branches, a shorthand for- git branch.
- createcreates a new branch, shorthand for- git checkout -b.
- deletedeletes an existing branch, shorthand for- git branch -D.
- namethe name of the current branch.
- lastthe name of the last branch checked out before the current branch.
- publishpush and set the tracking branch of a local branch to origin, shorthand for- git push -u origin <branch>.
- unpublishdelete a remote branch, shorthand for- git push origin :<branch>.
- forceforce push local changes to the remote, shorthand for- git push --force-with-lease.
- changescompare the list of commits on the local branch to another branch, e.g. when on a feature branch- git changes masterlists the commits which are not present on the master branch.
- savelike pushing to the stash but attached to a branch, shorthand for- git commit -am temp.
- loadlike popping from the stash but attached to a branch, shorthand for- git reset --mixed HEAD.
Description
				
					Languages
				
				
								
								
									Shell
								
								100%