Github is Crawly. It allows you to do a lot of cool things, one of which is storing your files. Information technology's different from any other online information storage because you don't have to re upload the unabridged file every time you make some changes. You can piece of work offline and then all of yous take to do is commit the changes and push it to the origin.

Github allows many people to contribute to a single project besides (Check this out to learn about CONTRIBUTION on GitHub).

The very kickoff fourth dimension I tried to upload something on GitHub I found information technology very confusing. I went through a lot of blogs and videos simply couldn't find whatsoever easy mode to upload the files. Even though I am comfortable with using terminal commands, I didn't want to blindly utilise the git commands without understanding anything.

And and then I found GitHub Desktop!

It can be a very expert alternative for someone who is only getting started. It doesn't but brand things easy. Information technology also kind of lets you lot visualise and understand the git terminology.

Follow these piece of cake steps to successfully upload your showtime file :

Since you lot are planning to use GitHub, I think I tin can assume that you know how to create an account and how to install a software then I won't get into the details of the first two steps.

You probably have an account already, you just need to download and install GitHub Desktop.

Pace one : Create a GitHub account

Step 2 : Download and Install GitHub Desktop

Pace 3: Setup your GitHub Desktop

If you lot are using Windows, it volition automatically ask you to sign in and configure your git. If you are using a Mac, you will have to go to Preferences and exercise all of that yourself.

Step 4: Sign In to your GitHub business relationship

If you click the top right icon on your "dashboard" information technology will requite you a driblet downwardly menu, where you tin select "Your Profile" to go to your profile.

Step 5: Create a Repository

You can think of "Repository"(repo in short) every bit a folder. You create 1 and keep files in them. To store your files on GitHub you need to create a repo first.

  1. Go to the "Repositories" tab on your profile
  2. Click "New"
  3. Name the repo
  4. Click "Create Repository"

(I named my repository "Hello_World".)

Later on you click "Create Repository" you will be redirected to a page. The url of that page in the url of your repo. Yous will need that for the rest of the steps.

5.1_your_new_repository

If you get dorsum to your profile, yous volition see that a new repository has been created.

You will be redirected to the repository page if you click on the repo.

You can get the url there as well.

Footstep half-dozen: Clone your Repository

Now information technology'south time to kickoff adding files to the new repo. You lot tin can work directly on GitHub, but it's non very convenient. We similar to work offline on our computer and so upload the edited work, don't nosotros? GitHub allows you lot to do exactly that.

We start by cloning the repository which is kind of similar downloading the folder to your estimator. But information technology is more flexible, you don't have to upload the whole folder again. You tin work offline and only push button the changes to GitHub.

8.1_clone_desktop

Go to GitHub Desktop and find the "Clone Repository" option.

Type the url and choose the local directory.

(I named the folder "Hello_World" as well.)

8_2_clone_folder

Get select your folder on GitHub desktop. Your folder will be empty because you haven't added anything yet.

If you had any files in your repo, your binder would have contained all the files now.

Stride vii: Edit

Whatsoever changes you make to the folder will exist automatically shown on your GitHub Desktop. Brand sure you accept selected the current folder on your GitHub Desktop as well.
For case, I'll create iii new files in the "Hello_World" folder(left prototype) and they automatically appear on GitHub Desktop(right image)

Footstep eight: Commit

When y'all edit a file you lot always salve it before closing, don't you? Think of "Commit" every bit saving changes. You need to commit before y'all can upload it to GitHub.

" data-medium-file="https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=300" data-large-file="https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=831" class="alignnone wp-image-36" src="https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=458&h=415" alt="12_commit" width="458" height="415" srcset="https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=458&h=415 458w, https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=150&h=136 150w, https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=300&h=272 300w, https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png?w=768&h=696 768w, https://sheikhadilina.files.wordpress.com/2018/03/12_commit.png 831w" sizes="(max-width: 458px) 100vw, 458px">
I have named the commit "added primary.cpp"

Only like when you relieve a file you need to name it before you can click the save push button, on GitHub Desktop, you need to name the commit earlier you can click the "Commit to primary"

As soon as you kickoff typing a name, the button will automatically become clickable.

(Information technology is a practiced practice to name the commit in a meaningful style.)

 Stride ix: Button

At present that you have saved(committed) the changes , all you demand to practice is upload information technology. "Push" is uploading all the changes to Github.

Go ahead and click "Button Origin".

Y'all will now exist able to see the uploaded files on your GitHub repository.

Woo-hoo! Congratulations!

You lot take successfully uploaded your first file!

And then now that you know what all the terms mean and you are confident enough to employ GitHub, yous tin switch to the command line because at that place are a lot of other things yous can do with GitHub and some of them cannot be done using GitHub Desktop. You will need the command line.

You lot volition find all the necessary git commands hither.