Last active
April 28, 2023 00:18
-
-
Save nissan/e7d8719412f2b8cabd45a5306d803e38 to your computer and use it in GitHub Desktop.
My settings to configure git in a Linux environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install git -y | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt install git-lfs meld -y | |
git config --global user.name "John Doe" | |
git config --global user.email "[email protected]" | |
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