Installing Git on Windows
- At the GNU General Public License, hit Next
- Select Destination Location
- C:\Program Files\Git
- Select Components
- Checked
- Associate .git* configuration files with the default text editor
- Associate .sh files to be run with Bash
- (NEW!) Scalar (Git add-on to manage large-scale repositories)
- Checked
- Select Start Menu Folder
- Git
- Choosing the default editor used by Git
- Use Notepad as Git's default editor
- Adjusting the name of the initial branch in new repositories
- Override the default branch name for new repositories
- main
- Override the default branch name for new repositories
- Adjusting your PATH environment
- Git from the command line and also from 3rd-party software
- Choosing the SSH executable
- Use bundled OpenSSH
- Choosing HTTPS transport backend
- Use the native Windows Secure Channel library
- Configuring the line ending conversions
- Checkout Windows-style, commit Unix-style line endings
- Configuring the terminal emulator to use with Git Bash
- Use Windows' default console window
- Choose the default behavior of 'git pull'
- Fast-forward or merge - this will update your project if you have not made any changes yet, or merge if you have
- Choose a credential helper
- Git Credential Manager
- Configuring extra options
- Enable file system caching
- Select Install
Updating .gitignore and enforcing it
When you want to ignore additional files or folders, you have to update your .gitignore. After you make the additions or changes, you have to remove the cached files from the local repository, add them back, commit again to the local and push to the remote repositories:
git rm -r --cached .
git add .
git commit -m "Ignore list update"
To push the locally committed changes back to your remote repo:
git push