Skip to content

Instantly share code, notes, and snippets.

@atsushifx
Last active August 16, 2023 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atsushifx/da90cf2d7de1a9de897935f6776b0598 to your computer and use it in GitHub Desktop.
Save atsushifx/da90cf2d7de1a9de897935f6776b0598 to your computer and use it in GitHub Desktop.
git config / attributes / ignore file
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
## Audio
*.aif binary
*.aiff binary
*.it binary
*.mod binary
*.mp3 binary
*.ogg binary
*.s3m binary
*.wav binary
*.xm binary
## Video
*.asf binary
*.avi binary
*.flv binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.wmv binary
## Images
*.bmp binary
*.gif binary
*.hdr binary
*.iff binary
*.jpeg binary
*.jpg binary
*.pict binary
*.png binary
*.psd binary
*.tga binary
*.tif binary
*.tiff binary
*.webp binary
*.ico binary
## Archive
*.7z binary
*.bz2 binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary
# Compiled Dynamic Library
*.dll binary
*.pdb binary
*.so binary
*.jar binary
# Fonts
*.otf binary
*.ttf binary
*.woff* binary
# Executable/Installer
*.apk binary
*.exe binary
*.dll binary
# Documents
*.pdf binary
*.txt text
####
# @(#) : git common settings
#
[core]
autocrlf = input
symlinks = true
attributesfile = ~/.config/git/attributes
[color]
ui = true
[user]
name = Furukawa, Atsushi
email = atsushifx@example.com
[init]
defaultBranch = main
[push]
default = current
autoSetupRemote = true
[merge]
ff = false
[pull]
ff = only
[alias]
ss = status -s
br = branch
co = checkout
sw = switch
pr = pull -r
ps = push
co = checkout
st = status
fixit = commit --amend --no-edit
l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll = log --stat --abbrev-commit
lg = log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
llg = log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit
aliases = !git config --get-regexp '^alias\\.' | sed 's/alias\\.\\([^ ]*\\) \\(.*\\)/\\1\\\t => \\2/' | sort
##
## @(#) : git global untrack file settings
#
##
#
# @version 1.0.4
# @author Furukawa, Atsushi <atsushifx@aglabo.com>
# @update 2022-07-03
# @license MIT
#
# @dersc
# git ignore files about,
# credential files
# hist, info for dotfiles
#
#
###
# general ignore files
#
##
# OS created files
#
.DS_Store
thums.db
##
# backup
$~*
~*
*~
*tmp
*swp
##
# credential files
# private key, etc
#
**/.ssh/
**/.gnupg/*
**/.dbus-keyrings/
*credential*
##
# shell & app created files
# history & info
.*hist*
.*info*
# Log Files
*.log
# ignore programming
# patch
*.diff
*.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment