HomeToolsAbout

gitconfig

Global gitconfig

# see where current gitconfig comes from git config --list --show-origin # edit global gitconfig git config --global --edit git config --global -e

Increase Buffer Size

When you have a large delta in a repository that needs a push, you may need to increase the buffer size

git config http.postBuffer 524288000

Fast forward only

# For current repo git config pull.ff only # for current machine git config --global pull.ff only

Set default branch name created as custom_name

# new projects will start with custom_name branch git config --global init.defaultBranch custom_name

Enable Git detailed log

export GIT_TRACE_PACKET=1 export GIT_TRACE=1 export GIT_CURL_VERBOSE=1
AboutContact