Skip to content

Instantly share code, notes, and snippets.

Last active April 28, 2023 00:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
My settings to configure git in a Linux environment
sudo apt install git -y
curl -s | sudo bash
sudo apt install git-lfs meld -y
git config --global "John Doe"
git config --global ""
git config --global core.editor "nano"
git config --global diff.tool "meld"
git config --global merge.tool "meld"
git config --global help.autocorrect 1
git config --global core.autocrlf input
git config --global core.fileMode false
git lfs install
touch ~/.gitignore_global
git config --global core.excludesfile '~/.gitignore_global'
echo -e "*.ipynb_checkpoints\n*.pyc\n*.pyo\n*.log\n.DS_Store\n__pycache__/\n*.rdata\n*.rds\n*.Rhistory\n*.Rproj.user\n*.Ruserdata" >> ~/.gitignore_global
echo "Git configuration completed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment