oliverdavies.uk/source/_posts/some-useful-git-aliases.md

37 lines
830 B
Markdown
Raw Normal View History

2015-03-16 21:18:03 +00:00
---
title: Some Useful Git Aliases
2020-03-08 14:32:13 +00:00
date: 2014-01-15
excerpt:
Here are some bash aliases that I use and find helpful for quickly writing Git
and Git Flow commands.
2015-03-16 21:18:03 +00:00
tags:
2015-06-14 02:27:41 +00:00
- git
2015-03-16 21:18:03 +00:00
---
Here are some bash aliases that I use and find helpful for quickly writing Git
and Git Flow commands.
2015-06-18 00:52:29 +00:00
2018-02-27 21:36:41 +00:00
These should be placed within your `~/.bashrc` or `~/.bash_profile` file:
2015-03-16 21:18:03 +00:00
2017-03-16 08:09:52 +00:00
```language-bash
alias gi="git init"
alias gcl="git clone"
alias gco="git checkout"
alias gs="git status"
alias ga="git add"
alias gaa="git add --all"
alias gc="git commit"
alias gcm="git commit -m"
alias gca="git commit -am"
alias gm="git merge"
alias gr="git rebase"
alias gps="git push"
alias gpl="git pull"
alias gd="git diff"
alias gl="git log"
alias gfi="git flow init"
alias gff="git flow feature"
alias gfr="git flow release"
alias gfh="git flow hotfix"
```