Definition
Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference.
INSTALLATION & GUIS
GitHub for Windows
GitHub for Mac
htps://mac.github.com For Linux and Solaris platforms, the latest release is available on the official Git web site.
Git for All Platforms
SETUP
After Creating an Account on GitHub, you have to add username and email on your computer by gitbash or cmd.
git config --global user.name “[firstname lastname]”
git config --global user.email “[valid-email]”
Now Push Your Project On GitHub
To push your project on github you can do it in cmd prompt or in VS terminal. My reference is Use VS terminal.
SETUP & INIT
initialize an existing directory as a Git repository
git init
show modified files in working directory, staged for your next commit
git status
add all file as it looks now to your next commit (stage)
git add -A
commit your staged content as a new commit snapshot
git commit -m "Your Comment About Changes"
add a git URL as an alias
git remote add origin "GitHub repository Link"
Transmit local branch commits to the remote repository branch
git push origin master