Installing Git on Windows

  1. At the GNU General Public License, hit Next
  2. Select Destination Location
    1. C:\Program Files\Git
  3. Select Components
    1. Checked
      1. Associate .git* configuration files with the default text editor
      2. Associate .sh files to be run with Bash
      3. (NEW!) Scalar (Git add-on to manage large-scale repositories)
  4. Select Start Menu Folder
    1. Git
  5. Choosing the default editor used by Git
    1. Use Notepad as Git's default editor
  6. Adjusting the name of the initial branch in new repositories
    1. Override the default branch name for new repositories
      1. main
  7. Adjusting your PATH environment
    1. Git from the command line and also from 3rd-party software
  8. Choosing the SSH executable
    1. Use bundled OpenSSH
  9. Choosing HTTPS transport backend
    1. Use the native Windows Secure Channel library
  10. Configuring the line ending conversions
    1. Checkout Windows-style, commit Unix-style line endings
  11. Configuring the terminal emulator to use with Git Bash
    1. Use Windows' default console window
  12. Choose the default behavior of 'git pull'
    1. Fast-forward or merge - this will update your project if you have not made any changes yet, or merge if you have
  13. Choose a credential helper
    1. Git Credential Manager
  14. Configuring extra options
    1. Enable file system caching
  15. 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

Popular posts from this blog

SharePoint PowerShell Quick Guide

Dependency Injection in .NET

Git Guide