Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Bills
git-tips
Commits
8a42e7d4
Commit
8a42e7d4
authored
Sep 03, 2015
by
Chris Bills
Browse files
Update README with information about git aliases
parent
fae29e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8a42e7d4
...
...
@@ -42,3 +42,16 @@ Example:
`fool [git-tips:master?+>]$`
(only imagine it in color... yeah, real helpful, I know...)
This means the local branch
`master`
is ahead of the remote branch it is tracking, there is at least one stash, and there are untracked files present.
### git-aliases
A collection of useful git aliases. These can be placed in
`~/.gitconfig`
(recommended) or within a project's git config (not recommended).
*
`co`
- Alias for
`checkout`
, easier and quicker to type
*
`last`
- Display information about the most recent commit
*
`unstage`
- Reverse a
`git add <file>`
with
`git unstage <file>`
*
`ls`
- list all the files currently tracked by git
*
`vis`
- display a pretty listing of log messages with a graph of the branching
*
`today`
- (Requires git v1.8+) displays log of commits since yesterday; e.g. today's commits
*
`squash`
- Does an interactive rebase of the previous # commits; useful for squashing commits
*
`stashed`
- Display information about stashes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment