MegaBites-AI/Windows-powershell
0308
1# Getting started with Git2 3We are using Git version 2.9.0, but any recent version should be good.4It's recommended to learn the `git` command-line tool for full5cross-platform experience and a deeper understanding of Git itself.6 7## Install8 9### Windows10 11Install [Git for Windows][].12 13During the installation process, choose these recommended settings:14 15* Use Git from the Windows Command Prompt16* Use OpenSSH17* Checkout Windows-style, commit Unix-style line endings18* Use Windows' default console window19* Enable file system caching20 21[Git for Windows]: https://git-scm.com/download/win22 23### Linux24 25Install by using the package manager on your system.26A list of all the package managers and commands can be found [here][linux-git-dl].27 28### Interactive tutorials29 30There are (too) many Git tutorials on the internet. Here we post31references to our favorites.32 33#### Hello World34 35If you're new to Git, learn the following commands: `checkout`, `branch`,36`pull`, `push`, `merge`.37 38Use GitHub's [Hello World][] to learn how to create a feature branch, commit39changes, and issue a pull request.40 41[Hello World]: https://guides.github.com/activities/hello-world/42 43#### Githug44 45[Githug](https://github.com/Gazler/githug) is a great gamified way to46learn Git in couple hours. After finishing 50+ real-world scenarios47you will have a pretty good idea about what and when you can do with48Git.49 50## Authentication51 52### Windows53 54On Windows, the best way to use Git securely is [Git Credential Manager for Windows][manager].55It's included in the official Git installer for Windows.56 57#### Linux and macOS58 59If you do not have a preferred method of authentication, enable the storage60credential helper, which will cache your credentials in plaintext on your61system, so use a [token][].62 63```sh64git config --global credential.helper store65```66 67Alternatively, you can use [SSH key][].68In this case, you may want to use git-ssh even for HTTPS Git URLs.69 70```none71git config --global url.git@github.com:.insteadOf https://github.com/72```73 74[SSH key]: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#generating-a-new-ssh-key75[token]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/76[manager]: https://github.com/Microsoft/Git-Credential-Manager-for-Windows77[linux-git-dl]: https://git-scm.com/download/linux78 