Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 729 Bytes

12_global_git_settings.md

File metadata and controls

36 lines (20 loc) · 729 Bytes

Set up git configuration:

  1. Global gitignore file.

run touch ~/.gitignore to create .gitignore file.

now add below lines:

echo ".idea" >> ~/.gitignore
echo ".vscode" >> ~/.gitignore
echo ".php_cs.cache" >> ~/.gitignore

git config --global core.excludesfile '~/.gitignore'

  1. Global User Email/Name:

Obviously email/name should be yours.

git config --global user.email "bhushangaykawad@gmail.com"

git config --global user.name "Bhushan"

  1. Global Core Editor:

git config --global core.editor "vim"

  1. Git Credential Store:

git config --global credential.helper cache

  1. Git pull stratergy to fast forward only (Only available in GIT 2.27 and above)

git config --global pull.ff only