Last active
December 15, 2015 00:08
-
-
Save mhaidarhanif/5170182 to your computer and use it in GitHub Desktop.
mhaidarh's .gitconfig & global_ignore
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
# mhaidarh's .gitignore | |
# https://gist.github.com/mhaidarh/5170182 | |
############ | |
# Git Common | |
############ | |
# SVN | |
.svn/ | |
# Linux | |
.* | |
!.gitignore | |
*~ | |
# Archives | |
*.7z | |
*.jar | |
*.rar | |
*.zip | |
*.gz | |
*.bzip | |
*.bz2 | |
*.xz | |
*.lzma | |
## packing-only formats | |
*.iso | |
*.tar | |
## package management formats | |
*.dmg | |
*.xpi | |
*.gem | |
*.egg | |
*.deb | |
*.rpm | |
# Vim | |
.*.s[a-w][a-z] | |
*.un~ | |
Session.vim | |
.netrwhist | |
*~ | |
# IntelliJ | |
*.iml | |
*.ipr | |
*.iws | |
.idea/ | |
# Eclipse | |
*.pydevproject | |
*.project | |
*.metadata | |
bin/** | |
tmp/** | |
tmp/**/* | |
*.tmp | |
*.bak | |
*.swp | |
*~.nib | |
local.properties | |
.classpath | |
.settings/ | |
.loadpath | |
## External tool builders | |
.externalToolBuilders/ | |
## Locally stored "Eclipse launch configurations" | |
*.launch | |
## CDT-specific | |
.cproject | |
## PDT-specific | |
.buildpath | |
# Emacs | |
*~ | |
\#*\# | |
/.emacs.desktop | |
/.emacs.desktop.lock | |
.elc | |
auto-save-list | |
tramp | |
.\#* | |
## Org-mode | |
.org-id-locations | |
*_archive | |
# SublimeText project files | |
*.sublime-workspace | |
# SASS | |
*.sass-cache | |
################# | |
# Git Programming | |
################# | |
# C | |
## Object files | |
*.Libraries | |
## o | |
*.lib | |
*.a | |
## Shared objects (inc. Windows DLLs) | |
*.dll | |
*.so | |
*.so.* | |
*.dylib | |
## Executables | |
*.exe | |
*.out | |
*.app | |
# C++ | |
## Compiled Object files | |
*.slo | |
*.lo | |
*.o | |
## Compiled Dynamic libraries | |
*.so | |
*.dylib | |
## Compiled Static libraries | |
*.lai | |
*.la | |
*.a | |
# CMake | |
CMakeCache.txt | |
CMakeFiles | |
Makefile | |
cmake_install.cmake | |
install_manifest.txt | |
# Java | |
*.class | |
## Package Files | |
*.jar | |
*.war | |
*.ear | |
# Android | |
## built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
## Java class files | |
*.class | |
## generated files | |
bin/ | |
gen/ | |
## Local configuration file (sdk path, etc) | |
local.properties | |
## Eclipse project files | |
.classpath | |
.project | |
## Proguard folder generated by Eclipse | |
proguard/ | |
## Intellij project files | |
*.iml | |
*.ipr | |
*.iws | |
.idea/ | |
# Python | |
*.py[cod] | |
## C extensions | |
*.so | |
## Packages | |
*.egg | |
*.egg-info | |
dist | |
build | |
eggs | |
parts | |
bin | |
var | |
sdist | |
develop-eggs | |
.installed.cfg | |
#lib | |
#lib64 | |
__pycache__ | |
## Installer logs | |
pip-log.txt | |
## Unit test / coverage reports | |
.coverage | |
.tox | |
nosetests.xml | |
## Translations | |
*.mo | |
## Mr Developer | |
.mr.developer.cfg | |
.project | |
.pydevproject | |
# Jython | |
*.pyc | |
*.class | |
# Dart | |
.DS_Store | |
packages | |
.project | |
pubspec.lock | |
# Go | |
# Compiled Object files, Static and Dynamic libs (Shared Objects) | |
*.o | |
*.a | |
*.so | |
## Folders | |
_obj | |
_test | |
## Architecture specific extensions/prefixes | |
*.[568vq] | |
[568vq].out | |
*.cgo1.go | |
*.cgo2.c | |
_cgo_defun.c | |
_cgo_gotypes.go | |
_cgo_export.* | |
_testmain.go | |
*.exe | |
# Ruby | |
*.gem | |
*.rbc | |
.bundle | |
.config | |
coverage | |
InstalledFiles | |
lib/bundler/man | |
pkg | |
rdoc | |
spec/reports | |
test/tmp | |
test/version_tmp | |
tmp | |
## YARD artifacts | |
.yardoc | |
_yardoc | |
doc/ | |
# Rails | |
*.rbc | |
*.sassc | |
.sass-cache | |
capybara-*.html | |
.rspec | |
.rvmrc | |
/.bundle | |
/vendor/bundle | |
/log/* | |
/tmp/* | |
/db/*.sqlite3 | |
/public/system/* | |
/coverage/ | |
/spec/tmp/* | |
**.orig | |
rerun.txt | |
pickle-email-*.html | |
.project | |
# Perl | |
blib/ | |
.build/ | |
_build/ | |
cover_db/ | |
inc/ | |
Build | |
!Build/ | |
Build.bat | |
.last_cover_stats | |
Makefile | |
Makefile.old | |
MANIFEST.bak | |
META.yml | |
MYMETA.yml | |
nytprof.out | |
pm_to_blib | |
# Haskell | |
dist | |
cabal-dev | |
*.o | |
*.hi | |
*.chi | |
*.chs.h | |
.virthualenv | |
# Scala | |
*.class | |
*.log | |
## sbt specific | |
dist/* | |
target/ | |
lib_managed/ | |
src_managed/ | |
project/boot/ | |
project/plugins/project/ | |
## Scala-IDE specific | |
.scala_dependencies | |
# R | |
# History files | |
.Rhistory | |
# Example code in package build process | |
*-Ex.R | |
# LaTeX | |
*.acn | |
*.acr | |
*.alg | |
*.aux | |
*.bbl | |
*.blg | |
*.dvi | |
*.fdb_latexmk | |
*.glg | |
*.glo | |
*.gls | |
*.idx | |
*.ilg | |
*.ind | |
*.ist | |
*.lof | |
*.log | |
*.lot | |
*.maf | |
*.mtc | |
*.mtc0 | |
*.nav | |
*.nlo | |
*.out | |
*.pdfsync | |
*.ps | |
*.snm | |
*.synctex.gz | |
*.toc | |
*.vrb | |
*.xdy | |
*.tdo | |
# Compass | |
.sass-cache | |
# Jekyll | |
_site/ | |
# Node | |
lib-cov | |
*.seed | |
*.log | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz | |
pids | |
logs | |
results | |
npm-debug.log | |
node_modules | |
# Maven | |
target/ | |
# Nanoc | |
config.yaml | |
output/ | |
tmp/ | |
# SketchUp | |
*.skb | |
# TextPattern | |
.htaccess | |
css.php | |
rpc/ | |
sites/site*/admin/ | |
sites/site*/private/ | |
sites/site*/public/admin/ | |
sites/site*/public/setup/ | |
sites/site*/public/theme/ | |
textpattern/ | |
HISTORY.txt | |
README.txt | |
########## | |
# Extras # | |
########## | |
*.DS_Store | |
*.sw[nop] | |
.bundle | |
.env | |
db/*.sqlite3 | |
log/*.log | |
rerun.txt | |
tags | |
tmp/**/* | |
!tmp/cache/.keep | |
zeus.json | |
# https://github.com/github/gitignore |
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
# mhaidarh's .gitconfig | |
# https://gist.github.com/mhaidarh/5170182 | |
[user] | |
name = M Haidar Hanif | |
email = [email protected] | |
editor = vim | |
signingkey = 60DEF204 | |
[core] | |
excludesfile = ~/.gitignore | |
autocrlf = input | |
safecrlf = true | |
quotepath = false | |
pager = less -r | |
[credential] | |
helper = cache --timeout=36000 | |
[alias] | |
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort | |
switch = !legit switch \"$@\" | |
branches = !legit branches | |
sprout = !legit sprout \"$@\" | |
unpublish = !legit unpublish \"$@\" | |
harvest = !legit harvest \"$@\" | |
sync = !legit sync \"$@\" | |
publish = !legit publish \"$@\" | |
graft = !legit graft \"$@\" | |
master = checkout master | |
develop = checkout develop | |
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' - | |
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' - | |
merge-branch = !git checkout master && git merge @{-1} | |
a = !git add . && git status | |
au = !git add -u && git status | |
aa = !git add . && git add -u && git status | |
al = add --all | |
ap = add --patch | |
b = branch | |
cl = clone --depth=1 --recursive | |
clone = cl | |
c = commit | |
ca = commit --amend | |
ci = commit -v | |
cm = commit -m | |
co = checkout | |
cb = checkout -b | |
cs = commit -S | |
d = log --diff-filter=D -- $1 | |
diff = diff --color-words | |
h = lg | |
hist = h | |
history = h | |
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Cireset' | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
ll = log --stat --abbrev-commit --show-signature | |
lo = log --oneline --graph | |
p = push | |
pu = push -u | |
pr = !hub pull-request | |
r = !git ls-files -z --deleted | xargs -0 git rm | |
re = reset HEAD | |
remot = remote | |
s = status | |
st = status | |
size = count-objects -v | |
up = !git fetch origin && git rebase origin/master | |
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend | |
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = auto # covers diff = true, status = auto, branch = auto | |
interactive = auto | |
[push] | |
default = current | |
[merge] | |
ff = only | |
[include] | |
path = .gitconfig.local | |
[commit] | |
template = ~/.gitmessage | |
[fetch] | |
prune = true | |
[url "https://"] | |
insteadOf = git:// | |
# http://git-scm.com | |
# http://git-legit.org | |
# https://github.com/github/gitignore | |
# http://gitimmersion.com | |
# http://oli.jp/2012/git-powerup | |
# http://rails.wincent.com/wiki/Git_quickstart | |
# http://blog.blindgaenger.net/advanced_git_aliases.html | |
# http://theint.ro/blogs/outro/4649682-git-for-busy-people-see-what-youre-doing | |
# http://www.jukie.net/bart/blog/pimping-out-git-log | |
# http://nvie.com/posts/a-successful-git-branching-model/ | |
# http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/ | |
[http] | |
sslverify = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment