How to Install and Use Git With Github on Windows 10
You can download Git from the official website here.
- Locate and execute the Git-220.127.116.11-64-bit application from your Downloads folder.
- Run the installer which will open the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options should be fine.
***NOTE: I set Notepad++ as the default editor along with Windows default command console ***
- After finishing the install open a command prompt and navigate to the folder which you want to pull to using Git.
- Now that I have my files pulled from Github I will use the Source Control feature in Visual Studio Code and select my directory location.
- ***NOTE: You can do all of this from within VS Code but I prefer to use command line. Use whatever you’re comfortable with.***
- Now I create a new text file and save it in the folder that I have initialized.
- I verify I am in the proper directory and can see my new text file named ‘windows_git_text.txt’ and verify the home directory /top folder is initialized via Git.
- Next we add the new file to git with the git add command.
- Then we use git commit -m “string” command to give verbose input as to why this change has been made. This is optional but a good practice to use.
- We push our text file to Git.
- A browser page is displayed with a login. Login with your Github credentials.
- Next authorize the GitCredentialManager.
- Check your windows or Git command prompt and you will see we have added this new file to our Github main branch in our Python project.
For the sake of sanity we can verify this by browsing to the location on our Github.