Skip to content

Instantly share code, notes, and snippets.

@hastinbe
Last active September 13, 2019 02:07
Show Gist options
  • Select an option

  • Save hastinbe/d9d919f42063cab0ae8dcb7393a4b867 to your computer and use it in GitHub Desktop.

Select an option

Save hastinbe/d9d919f42063cab0ae8dcb7393a4b867 to your computer and use it in GitHub Desktop.
*.html diff=html
*.inc diff=php
*.php diff=php
*.phtml diff=php
[alias]
a = add
ap = add --patch
authors = shortlog -sn
b = branch
bm = branch --merged
bnm = branch --no-merged
br = branch
brs = branch -avv
c = commit
csm = commit -sm
co = checkout
d = diff
dangling = !git fsck --no-reflog | awk '/dangling commit/ {print }' | gitk --all
dc = diff --cached
f = fetch
friday = log --decorate -p --since='last friday'
ignored = ls-files --others -i --exclude-standard --directory
l = log --decorate --name-status
l1 = log --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%ci) %C(bold blue)<%an>%C(reset)'
lg = log --decorate --graph
lg1 = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%ci) %C(bold blue)<%an>%C(reset)'
lp = log --decorate -p
lpw = log --decorate -p --ignore-all-space
lsb = branch -l
p = push
pt = push --tags
s = status
st = status
todo = grep --untracked --line-number 'TODO\\|FIXME'
up = "!git remote update -p; git merge --ff-only @{u}"
who = shortlog -s --
[core]
editor = /usr/bin/vim
excludesfiles = ~/.gitignore_global
attributesfile = ~/.gitattributes_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
###################
## Vim.gitignore
###################
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
#
# Session
Session.vim
# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
###################
#####################
## Emacs.gitignore
#####################
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
# directory configuration
.dir-locals.el
#####################
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
###########################
## SublimeText.gitignore
###########################
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# Workspace files are user-specific
*.sublime-workspace
# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project
# SFTP configuration file
sftp-config.json
# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache
# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
###########################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment