Користувальницькькі налаштування

Налаштування сайту


programming:git

Це стара версія документу!


Setup

Common

# configure the user which will be used by git
# Of course you should use your name
git config --global user.name "Example Surname"

# Same for the email address
git config --global user.email "your.email@gmail.com" 

# set default so that all changes are always pushed to the repository
git config --global push.default nothing

# colors
git config --global color.ui true
git config --global color.status auto
git config --global color.branch auto

# set editor
git config --global core.editor vim

# add aliases
git config --global alias.ci commit
git config --global alias.co checkout

For Linux

git config --global core.autocrlf input
git config --global core.safecrlf true

For Windows

git config --global core.autocrlf true
git config --global core.safecrlf true

Links

programming/git.1580742625.txt.gz · Востаннє змінено: 2020/02/03 17:10 повз charon