From da6754da407b01c3966747c49ed84228c30eb701 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 6 Jul 2015 16:20:24 +0100 Subject: [PATCH] Added Git files --- .gitconfig | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 46 ++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 .gitconfig create mode 100644 .gitignore diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..1ca612a --- /dev/null +++ b/.gitconfig @@ -0,0 +1,77 @@ +[color] + ui = true + +[color "branch"] + current = yellow bold + local = green bold + remote = cyan bold + +[color "diff"] + meta = yellow bold + frag = magenta bold + old = red bold + new = green bold + whitespace = red reverse + +[color "status"] + added = green bold + changed = yellow bold + untracked = red bold + +[branch] + autosetupmerge = true + +[alias] + aa = add --all + ap = add --patch + br = branch + c = commit -v + ca = commit --amend + cb = create-branch + cl = clone + co = checkout + db = delete-branch + f = fetch + g = grep --break --heading --line-number + lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit + log5 = log -n 5 + log10 = log -n 10 + lol = log --graph --decorate --pretty=oneline --abbrev-commit + lola = log --graph --decorate --pretty=oneline --abbrev-commit --all + pop = stash pop + prb = pull --rebase + ra = rebase --abort + rc = rebase --continue + st = status -s + undo = reset --hard + unstage = reset HEAD -- + wipe = clean -f -d + +[core] + excludesFile = ~/.gitignore-global + +[case] + ignorecase = true + +[grep] + lineNumber = true + patternType = extended + +[fetch] + prune = true + +[help] + autocorrect = 1 + +[gitsh] + nogreeting = true + +# Moved this into .gitconfig-local as this can be different depending on the version of Git. +# [push] +# default = simple + +[diff] + tool = vimdiff + +[include] + path = ~/.gitconfig-local diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a23469 --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# Patch/diff artifacts. +*.patch +*.diff +*.orig +*.rej +interdiff*.txt + +# emacs artifacts. +*~ +\#*\# + +# VI swap file +*.swp + +# PHPStorm +.idea +.idea/* + +# Hidden files. +.DS* +.project + +# Windows links. +*.lnk + +# Temporary files. +tmp* + +# For symfony composer.lock + +# Ignore configuration files that may contain sensitive information. +sites/*/settings*.php +sites/*/default.settings.php + +# Ignore paths that contain user-generated content. +sites/*/files +sites/*/private + +# Ignore ADD specific files +sites/*.local + +# Ignore SimpleTest multi-site environment. +sites/simpletest + +/modules/* +/reinstall.php