🪟 Windows
- Download and install Git for Windows
- Select “Add a Git Bash profile to Windows Terminal”
- Choose your preferred text editor for writing commit messages
- This can be anything, but you don’t need a fancy editor for commit messages, they’re just plain text
- Choose to install git-credential-manager
- This makes authenticating to Github and other code-forges much easier
- Leave all other options at default unless you know what they mean
macOS
I’ve written a script that will automatically install everything you’ll need:
- The Xcode command-line tools
- This contains git itself
- The Homebrew package manager
- This lets us easily install git-credential-manager
- git-credential-manager
- This makes authenticating to Github and other code-forges much easier
If you’d like to read the script, you can view it here
Open a terminal and run the following command to execute it:
curl -Ss https://lowerelements.club/ussc-git/install-macos.sh | bash
Finally, configure some essential git settings:
git config --global user.name 'Your Name'
git config --global user.email '[email protected]'
git config --global core.editor "open --wait-apps --new -e"
By default, this will use your default text editor (usually Text Edit) as git’s editor. See git config core.editor commands if you’d like to choose another editor
🐧 Linux
Install the git
package with you’re system’s package manager.
Debian / Ubuntu & Derivitives
sudo apt install git
Redhat / Fedora & Derivitives
sudo dnf install git
Arch & Derivitives
sudo pacman -S git
Finally, configure some essential git settings:
git config --global user.name 'Your Name'
git config --global user.email '[email protected]'
git config --global core.editor nano
By default, this will use nano as git’s editor. See git config core.editor commands if you’d like to choose another editor