My settings to configure git in a Linux environment
This file contains 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 "123456+jdoe@users.noreply.github.com" | |
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