Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rewrite gitconfig.example to be my base for gitconfig

While the .example file was fantastic in holman's public repo, it
doesn't make a lot of sense in my own repo. Instead, since gitconfig is
an unversioned file, let's use it as a template for future clones of
this repo. All of my aliases and my preferred git settings are present.
Furthermore, `rake install` will now copy this over to a gitconfig
assuming that gitconfig doesn't exist already.
  • Loading branch information...
commit aeae061e579fb14d7fc48c1b822a5b3b6b397b46 1 parent e56d322
Mike Kenyon authored
Showing with 37 additions and 15 deletions.
  1. +6 −0 Rakefile
  2. +31 −15 git/gitconfig.symlink.example
View
6 Rakefile
@@ -32,6 +32,12 @@ task :install do
end
`ln -s "$PWD/#{linkable}" "#{target}"`
end
+
+ # Set up the default gitconfig if none exists
+ gitconfig = 'git/gitconfig.symlink'
+ unless File.exists?(gitconfig) || File.symlink?(gitconfig)
+ FileUtils.cp "#{gitconfig}.example", gitconfig, :verbose => true
+ end
end
task :uninstall do
View
46 git/gitconfig.symlink.example
@@ -8,24 +8,40 @@
# install this to the correct location by running the project's main `rake`
# task.
[user]
- name = Zach Holman
- email = your@example.com
+ name = Mike Kenyon
+# email =
[alias]
- co = checkout
- promote = !$ZSH/bin/git-promote
- wtf = !$ZSH/bin/git-wtf
- rank-contributers = !$ZSH/bin/git-rank-contributers
- count = !git shortlog -sn
+ br = branch
+ ci = commit
+ co = checkout
+ count = !git shortlog -sn
+ d = diff
+ hist = log -- pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
+ incoming = log ..origin/master
+ lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
+ m = merge --no-ff
+ outgoing = log origin/master ..
+ promote = !$ZSH/bin/git-promote
+ rank-contributers = !$ZSH/bin/git-rank-contributers
+ st = status
+ wtf = !$ZSH/bin/git-wtf
[color]
- diff = auto
- status = auto
- branch = auto
+ ui = true
+ diff = auto
+ status = auto
+ branch = auto
[core]
- excludesfile = ~/.gitignore
- editor = mate -w
+ excludesfile = ~/.gitignore
+ editor = vim
[apply]
- whitespace = nowarn
+ whitespace = nowarn
[github]
- user = holman
+ user = mkenyon
[mergetool]
- keepBackup = false
+ keepBackup = false
+[merge]
+ conflictstyle = diff3
+[push]
+ default = upstream
+
+# Stuff
Please sign in to comment.
Something went wrong with that request. Please try again.