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

Github allows many people to contribute to a unmarried project as well (Check this out to learn virtually CONTRIBUTION on GitHub).

The very first fourth dimension I tried to upload something on GitHub I found it very confusing. I went through a lot of blogs and videos but couldn't find whatever easy way to upload the files. Even though I am comfortable with using concluding commands, I didn't want to blindly utilize the git commands without understanding annihilation.

And then I found GitHub Desktop!

Information technology tin be a very good alternative for someone who is simply getting started. It doesn't only make things easy. It also kind of lets you visualise and sympathise the git terminology.

Follow these easy steps to successfully upload your first file :

Since you are planning to utilize GitHub, I retrieve I tin assume that you know how to create an account and how to install a software so I won't go into the details of the first 2 steps.

Y'all probably accept an business relationship already, you just need to download and install GitHub Desktop.

Stride 1 : Create a GitHub business relationship

Step two : Download and Install GitHub Desktop

Step iii: Setup your GitHub Desktop

If you are using Windows, information technology volition automatically enquire yous to sign in and configure your git. If you are using a Mac, you will take to become to Preferences and do all of that yourself.

Step 4: Sign In to your GitHub account

If you click the top correct icon on your "dashboard" it volition give you a drib downwardly carte du jour, where you tin can select "Your Contour" to go to your contour.

Step five: Create a Repository

You lot can call up of "Repository"(repo in short) as a folder. You create one and keep files in them. To shop your files on GitHub you demand to create a repo first.

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

(I named my repository "Hello_World".)

After y'all click "Create Repository" you will be redirected to a page. The url of that page in the url of your repo. Y'all will demand that for the residuum of the steps.

5.1_your_new_repository

If you go back to your profile, yous will come across that a new repository has been created.

You volition be redirected to the repository folio if you click on the repo.

You tin get the url there too.

Footstep half-dozen: Clone your Repository

Now it'south time to start adding files to the new repo. Y'all can work directly on GitHub, just it's not very user-friendly. We like to work offline on our estimator and so upload the edited piece of work, don't we? GitHub allows you to do exactly that.

Nosotros start by cloning the repository which is kind of like downloading the folder to your computer. But it is more flexible, y'all don't have to upload the whole folder again. You lot can work offline and only push the changes to GitHub.

8.1_clone_desktop

Go to GitHub Desktop and detect the "Clone Repository" pick.

Type the url and cull the local directory.

(I named the folder "Hello_World" besides.)

8_2_clone_folder

Become select your folder on GitHub desktop. Your folder will exist empty because you haven't added anything all the same.

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

Stride 7: Edit

Whatever changes you brand to the folder will exist automatically shown on your GitHub Desktop. Make sure you take selected the electric current binder on your GitHub Desktop as well.
For example, I'll create 3 new files in the "Hello_World" folder(left paradigm) and they automatically appear on GitHub Desktop(correct image)

Step 8: Commit

When you edit a file you always save it before closing, don't you lot? Think of "Commit" as saving changes. You need to commit before you 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 accept named the commit "added chief.cpp"

Just similar when you save a file y'all need to name it before you tin can click the save button, on GitHub Desktop, you need to proper noun the commit before you tin click the "Commit to primary"

As soon as y'all start typing a name, the button volition automatically go clickable.

(It is a skillful do to proper noun the commit in a meaningful style.)

 Step 9: Push

Now that yous take saved(committed) the changes , all you need to exercise is upload it. "Push" is uploading all the changes to Github.

Go alee and click "Button Origin".

You will now be able to run into the uploaded files on your GitHub repository.

Woo-hoo! Congratulations!

You have successfully uploaded your kickoff file!

Then at present that you know what all the terms mean and you lot are confident enough to use GitHub, you tin switch to the command line because there are a lot of other things y'all can exercise with GitHub and some of them cannot be done using GitHub Desktop. You will demand the command line.

You volition find all the necessary git commands here.