How to Upload File in Github 2018
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.
- Go to the "Repositories" tab on your contour
- Click "New"
- Name the repo
- 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.
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.
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.)
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.
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.
costellocionfibed.blogspot.com
Source: https://sheikhadilina.wordpress.com/2018/03/05/upload-files-to-github-without-using-the-command-line/
0 Response to "How to Upload File in Github 2018"
Postar um comentário