github is without question one of the most important platforms you'll use
as a developer whether you're in data or software development it doesn't really matter
github provides an amazing wife or teams to collaborate together on development share
code version control automate your ci process along with a whole bunch of other things github
allows you to do a lot of things just strictly on their ui but in this video we'll focus on getting
you started locally by following the first step which is installing git on your local machine
we'll follow along this quick start documentation here and as it says here at the heart of github is
an open source version control system vcs called git and if you're going to work with this you
need to have it installed so let's go ahead and install it i'm on windows i'm just going to bring
open my command prompt and just type in git just to show that it is currently not on my machine
if it was we'd get some information there but it's not step one download install the latest version
of git let's go ahead and open this you can select your operating system for me i'm on windows
and it should automatically pop open if not you can select one of these options here so
after it finishes downloading go ahead and open that file and it'll get you to this
setup window i'm going to cruise through here here adjusting the name of the initial branch
this is a relatively recent change traditionally the main the master branch has been called master
but some teams are renaming this and github is giving you the option to decide what you want that
to be you know maybe you want it to be main trunk development whatever we'll keep it as a default
i'm going to move forward with a lot of these options here just to get us going and install and
i'll just let it do its thing here and we can see it's putting this in our c c drive program files
uh directory i'm not going to we don't need to see the release notes not going to launch this finish
so i've opened up here a fresh command prompt i closed down the one i had before and now if i do
get here we go we have a bunch of options here so get is successfully installed on our machine
step two set your username and git now the username is what's going to be associated
with any of the commits that you do meaning any changes that you want to pass on to github and
for your teammates to see or just to log it's going to be associated with a username and this
is how you can set that one important thing to point out here with the username is that
the get username is not the same as your github username just because we're setting your git
username which is what we just installed is git github is the website with this platform
where you'll need your own username and password here which is technically
separate than what you're setting locally as your git username just want to clear that up
what we'll do here is copy this paste it here and what we're doing here is saying git config and
using a global flag to say user dot name we're not obviously doing mona lisa and i'll just do
mjcon and now we can confirm it by running this command here we'll take out the actual name and
just see what it is and it should return our name which is mjcon so now it's set
next set your commit email address and again this is used for
as you're interacting with things it ties it to you and your email address so that you can get
notified of different things that are happening you can go ahead and set this on github directly
and adjust some settings to make it private if you'd like
but since we're working in the command line let's continue to do this so it's very similar
to the username but instead of user.name we'll do user.email and set the value so now we're back
in our command prompt i'm going to go ahead and make this change so we'll do user.email
quote and i'll put an email address in here
and then again if we want to see that it's there there it is
all right so now we have github installed we've configured our username and our email
and so now what we need to do is confirm that we can actually connect to github this way
and we'll try to clone a project so to test this we'll go ahead and try to clone
a public project using git that we've just installed and here i'm on fishtown analytics their
github page for dbt and what we'll do here is try to clone this which means download it locally i'm
going to copy this here we're going to code copy we'll go here to the command prompt i'm going to
change directories into documents
and what i actually did here is created a new folder called github demo and within here we
can see there's nothing in here currently so let's actually change to github demo typo
and now we're in here and what we'll do is run the command git clone and then paste
that value which is the location of that public project that we're trying to get a copy of locally
enter cloning and we can see it's working so that means it connected to github it found
all those files and cloned it locally if we go in here now we can see it and we have all the files
that are up here on this project and now we have a copy we can create our own branch which is you
can see here there's 109 branches currently for this project and start to interact with it
we can make our own changes locally use git to create a new branch move the changes up here and
do what's called a pull request which means ask some people to review it add their comments and
perhaps it will get what's called merged into this file for everybody else to use
and these kind of things we'll touch on now in future videos but at this point you're all set
up with git you'll still have to create your own github account which is technically separate than
git itself like the name says it's a hub of all these things ultimately based on that git concept
now you're on your way and we'll continue to build on this throughout the rest of these videos