Skip to content

Instantly share code, notes, and snippets.

@ishidur
Last active September 10, 2018 01:50
Show Gist options
  • Save ishidur/e2487682bfd5d44b310db9d961fbc6f2 to your computer and use it in GitHub Desktop.
Save ishidur/e2487682bfd5d44b310db9d961fbc6f2 to your computer and use it in GitHub Desktop.
gitのエイリアスの設定 #settings #git

.bash_profile

alias g='git'
source ~/.git-completion.bash

copy this file to your home directory
git-completion.bash

.gitconfig

[user]
	name = <your name>
	email = <your email>
[color]
	ui = auto
[alias]
	c = commit
	o = checkout
	pl = pull
	ps = push
	psu = push -u
	s = status
	b = branch
	cl = clone
	l = log --decorate --stat
	lg = log --graph --oneline --decorate
	la = log --graph --oneline --decorate --all		
	a = add
	d = diff
	mg = merge
	r = reset
	rb = rebase
	f = fetch
	amend = commit --amend
	fl = flow
	feature = flow feature
	release = flow release
	hotfix = flow hotfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment