Git Aliases
Git aliases in the .gitconfig file
.gitconfig
[alias]
ball = branch -a
camend = commit --amend --no-edit
co = checkout
hist = log --all --graph --decorate --oneline
pf = git st pull && git fetch -p
rc = !git reset --hard && git clean -df
st = status
Create a .gitconfig file with a single command
echo '
[user]
name = Paris Kostopoulos
email = parisikosto@gmail.com
[alias]
ball = branch -a
camend = commit --amend --no-edit
co = checkout
hist = log --all --graph --decorate --oneline
pf = git st pull && git fetch -p
rc = !git reset --hard && git clean -df
st = status
' > ~/.gitconfig