Skip to content

Instantly share code, notes, and snippets.

@jenikm
Last active December 20, 2015 04:49
Show Gist options
  • Save jenikm/6074156 to your computer and use it in GitHub Desktop.
Save jenikm/6074156 to your computer and use it in GitHub Desktop.
Git config
[alias]
fetch-tags = fetch --tags origin
co = checkout
ci = commit
stat = status
lg = log -p
br = branch
resolved = add
update = remote update
amend = commit --amend
ammend = commit --amend
production-tag-name = !date +"production_%Y_%m_%d_%H_%M"
pull-master-production = !git co master && git pull && git co production && git pull
merge-to-production = !git pull-master-production && git co master && git merge production && git tag -a $(git production-tag-name) -m 'release to production' && git push && git co production && git merge master && git push origin production --tags
branch-from-tag = !git fetch --tags && read -p 'Enter your new branch name: ' name && git checkout -b $name $(git describe --abbrev=0 --tags)
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = fuller
[user]
name = Eugene Magdel
email = jenikm@gmail.com
[push]
default = upstream
[hub]
protocol = https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment