Skip to content

Instantly share code, notes, and snippets.

@pianovwork
Last active October 26, 2021 00:11
Show Gist options
  • Save pianovwork/4d65bbd81678934aad6d1e20d6ecf65a to your computer and use it in GitHub Desktop.
Save pianovwork/4d65bbd81678934aad6d1e20d6ecf65a to your computer and use it in GitHub Desktop.
git config
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = vim
[user]
name = Ievgen.Pianov
email = pyanov.eugen@gmail.com
[alias]
sync = pull --rebase origin develop
unstash = stash apply
br = branch
cp = cherry-pick
co = checkout
ci = commit
cl = clone
dc = diff --cached
diff = diff --word-diff
st = status -s
br = branch
type = cat-file -t
dump = cat-file -p
tree = log --graph --abbrev-commit --decorate --pretty=format:'%x09 | %<(7,trunc)%C(bold blue)%h%C(reset) | %<(10,trunc)%cd |%<(50,trunc)%C(bold yellow)%d%Creset %n %x09 | %C(bold green)(%ar)%Creset %an %m%m %<(80,trunc)%s %n' --date=short
treea = !"git tree --all "
treeas = !"git tree --all -n10 "
last = log -3 HEAD --oneline --decorate
ui = !gitk
[credential]
helper = osxkeychain
[includeIf "gitdir:**/company/**"]
path = .gitconfig-company
[url "git@gitlab.company.com:"]
insteadOf = "https://gitlab.company.com/"
[user]
name = Ievgen.Pianov
email = ievgen.pianov@company.com
#Build and Log folders
**/out/**
**/bin/**
**/target/**
**/build/**
**/*.log
#Java Files and Packages
*.class
*.jar
*.war
*.ear
#intellij idea files
**/.idea/**
**/*.iml
#gradle
**/.gradle
# Eclipse artifacts, including WTP generated manifests
**/.classpath
**/.project
**/.checkstyle
**/.eclipse-pmd
**/.eclipse-pmd
**/.settings/**
# General
.DS_Store
#Sonar files
**/.sonar_lock
**/.sonar/**
# Vagrant virtual machine
.vagrant/
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# Terraform
**/.terraform/**
**/.terraform.lock.hcl
**/terraform.tfstate
**/terraform.tfstate.backup
.extra/
**/.extra/
**/.extra/**
Host gitlab.company.com
HostName gitlab.company.com
User git
AddKeysToAgent yes
UseKeychain no
IdentityFile ~/.ssh/company/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment