Last active
December 20, 2015 04:49
-
-
Save jenikm/6074156 to your computer and use it in GitHub Desktop.
Git config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 = [email protected] | |
[push] | |
default = upstream | |
[hub] | |
protocol = https |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment