Created
February 7, 2010 03:48
-
-
Save FrancisVarga/297198 to your computer and use it in GitHub Desktop.
gitconfig for meeeeeeeeeeeeeeeeeeee
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
#=========================================== | |
# Author: Francis Varga | |
# eMail: [email protected] | |
# Blog: http://varga-multimedia.com | |
#=========================================== | |
# | |
# This is my .gitconfig file | |
# | |
# Did you have question ask me ;)... | |
[core] | |
symlinks = false | |
autocrlf = input | |
editor = mate | |
[color] | |
diff = auto | |
branch = auto | |
status = auto | |
[alias] | |
#Show ur status of ur current | |
st = status | |
d = diff | |
ca = commit -avm | |
# CheckOut a branch | |
co = checkout | |
#Cherry Pick is one of the powerfullest tool ever | |
cp = cherry-pick | |
#create a branch and checkout it | |
cob= co -b | |
# +++++++++++ Works ONLY with Git 1.7.2 +++++++++++ | |
# I doesn't NEED A GUI if i used this pretty log output its FASTER and i can read it nice ASCII visualization!!! | |
l = log --pretty=format:'=================================== \n h1. %Cred%h%Creset - %C(yellow)%d%Creset - Author => %C(bold blue)<%an>%Creset \n Message => %s %Cgreen(%cr) \n===================================' --decorate --all --topo-order --graph | |
# +++++++++++ Works ONLY with Git 1.7.2 +++++++++++ | |
ll = log -p | |
lt = log trunk.. | |
llt = log -p trunk.. | |
lm = log master.. | |
llm = log -p master.. | |
b = branch | |
# shortcut for push to origin master the default push | |
pom = push origin master | |
#add submodule | |
ads = submodule add | |
# update AND initialize the submodules | |
initsub = !sh -c 'git submodule update && git submodule update --init' | |
# Add remote server for pushing | |
redor = remote add origin | |
# Show all the logs | |
verbose = !sh -c 'git log && git st' | |
#This will create a backup commit u can use a bash to trigger it every 6PM so u can't forget ur daily backup :) | |
bup = !sh -c 'echo +++ Init Backup +++ && git aa && echo +++ All files Added +++ && git commit -a --status' | |
aa = add -v ./ | |
# git tool for pushing to diffrent remotes | |
mp = multipush | |
#This will push every branches/tags to remote | |
backup = push --all | |
#Rename branch | |
rename = branch -m | |
#push to branch | |
phor = puhs origin | |
[pack] | |
packSizeLimit = 2g | |
[help] | |
format = html | |
[user] | |
name = FrancisVarga | |
email = [email protected] | |
[mergetool "opendiff"] | |
cmd = opendiff | |
trustExitCode = true | |
[github] | |
user = FrancisVarga | |
[email protected] | |
[merge] | |
tool = opendiff |
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
*.svn | |
*.DS_Store | |
*.emptydir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment