Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseluisq/git-useful-aliases
Small list of useful Git aliases.
https://github.com/joseluisq/git-useful-aliases
git git-alias
Last synced: 15 days ago
JSON representation
Small list of useful Git aliases.
- Host: GitHub
- URL: https://github.com/joseluisq/git-useful-aliases
- Owner: joseluisq
- License: mit
- Created: 2015-11-19T19:40:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T17:36:40.000Z (about 8 years ago)
- Last Synced: 2024-05-23T02:32:56.977Z (6 months ago)
- Topics: git, git-alias
- Language: Shell
- Size: 4.88 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Git useful aliases
> Small list of useful [Git aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases).## Install
```sh
$ wget -qO- http://git.io/git-useful-aliases | sh
```## Aliases
#### git last
Show last commit (HEAD)```sh
$ git config --global alias.last 'log -1 HEAD'
> git last
```#### git latest
Show all files of the last commit (HEAD)```sh
$ git config --global alias.latest 'show --name-only --oneline HEAD'
> git latest
```#### git down
Pull all changes from remote branch master with `--rebase` option.```sh
$ git config --global alias.down 'pull --rebase origin master'
> git down
```#### git up
Push all changes to remote branch master with `--set-upstream` option.```sh
$ git config --global alias.up 'push -u origin master'
> git up
```#### git save
`git add` and `git commit` for all changes on local branch master.```sh
$ git config --global alias.save '!git add -A; git commit .'
> git save
```#### git uptags
Push all tags to remote repository.```sh
$ git config --global alias.uptags 'push --follow-tags'
> git uptags
```#### git downtags
Pull down all tags from remote repository.```sh
$ git config --global alias.downtags 'fetch --tags'
> git downtags
```#### git lg
Show log in pretty format.```sh
$ git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
> git lg
```*Source: https://coderwall.com/p/euwpig/a-better-git-log*
## Related
[Fish Gitnow](https://github.com/joseluisq/gitnow) - Simple and fast commands for your git workflow. :tropical_fish: + :octocat:## Contributions
[Pull requests](https://github.com/joseluisq/git-useful-aliases/pulls) and [issues](https://github.com/joseluisq/git-useful-aliases/issues) are be welcome.## License
MIT© 2016 [José Luis Quintana](http://quintana.io)