How to Download / Install Git & GitHub Desktop (Git Beginner Tutorial, first commit)

Published: 10 July 2016
on channel: TanUv90
18,969
83

Git is amazing for sharing your code, collaborating with others and keeping a record of who changed what. It's super complicated, but here's a beginner tutorial on how to get it installed & set up. It is by no means complete so definitely continue learning by checking out other tutorials.

➣Download Git https://git-scm.com/downloads
-Choose your operating system
-"Select Components": check "Windows Explorer Integration"
-"PATH Environment" choose the 3rd option (include the UNIX commands. The 2nd option works but I recommend the 3rd option)
-"Line Ending Convention" choose the 1st option for windows: "Checkout windows-style, commit unix-style line endings"

➣Download GitHub Desktop https://desktop.github.com/
-it works with repositories from any source (not just github)
-Create Github Account https://github.com/
-Your username is public & your URL, so don't choose something stupid
-Sign into github desktop

➣Cloning (creating a project/repository)
-Create a "New repository" from https://github.com/
-the name must be unique to your account
-Click "set up in desktop" to clone & choose a folder
-Put files for that project in the repository folder

➣Making Commits
-change your files
-go to the Desktop app & click checkboxes next to files you want to include in a commit (unchecking a file still keeps the changes you made, but they won't be recorded in this commit)
-Type a commit message in "Summary"
-Click "commit to master"
-Sync (in upper right to pull & push @ the same time)

-----------Command Line---------------
git status == tells you if files are changed
git pull == updates your local files to match any new changes stored on GitHub
git add -A == adds all those files to the stage & gets them ready to commit
git commit -m "your message here in quotes" == saves the changes
git push == sends your new commits up to the gitHub server


Detailed installation instructions http://mechanicalrevolution.com/blog/...
Setting Git Global Username & Email https://help.github.com/articles/sett...


On this page of the site you can watch the video online How to Download / Install Git & GitHub Desktop (Git Beginner Tutorial, first commit) with a duration of hours minute second in good quality, which was uploaded by the user TanUv90 10 July 2016, share the link with friends and acquaintances, this video has already been watched 18,969 times on youtube and it was liked by 83 viewers. Enjoy your viewing!