Skip to content

Instantly share code, notes, and snippets.

@63phc
Created April 4, 2017 05:11
Show Gist options
  • Save 63phc/957922588048b7a3a671277c37d54128 to your computer and use it in GitHub Desktop.
Save 63phc/957922588048b7a3a671277c37d54128 to your computer and use it in GitHub Desktop.
git
#Unix/
git config --global core.autocrlf input
git config --global core.safecrlf true
#Log/
git log --pretty=oneline
git log --pretty=oneline --max-count=2
git log --pretty=oneline --since='5 minutes ago'
git log --pretty=oneline --until='5 minutes ago'
git log --pretty=oneline --author=<your name>
git log --pretty=oneline --all
#Добавьте следующее в файл .gitconfig в вашем $HOME каталоге.
#ФАЙЛ: .gitconfig
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
#ФАЙЛ: .profile
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias got='git '
alias get='git '
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment