How To Upload Files To Github Without Local Repository Command Line
Github is Awesome. It allows you to do a lot of cool things, one of which is storing your files. It's different from whatever other online data storage because you don't take to re upload the entire file every time you brand some changes. You tin work offline and and then all of you have to practice is commit the changes and push information technology to the origin.
Github allows many people to contribute to a unmarried projection as well (Check this out to larn almost CONTRIBUTION on GitHub).
The very first time I tried to upload something on GitHub I plant it very confusing. I went through a lot of blogs and videos but couldn't find any easy way to upload the files. Even though I am comfortable with using terminal commands, I didn't want to blindly utilize the git commands without understanding anything.
And then I found GitHub Desktop!
It can exist a very good alternative for someone who is just getting started. It doesn't simply make things easy. Information technology 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 use GitHub, I think I can presume that y'all know how to create an account and how to install a software so I won't go into the details of the starting time 2 steps.
You probably have an account already, you only need to download and install GitHub Desktop.
Step 1 : Create a GitHub business relationship
Footstep two : Download and Install GitHub Desktop
Footstep 3: Setup your GitHub Desktop
If you lot are using Windows, it will automatically ask you to sign in and configure your git. If you are using a Mac, you will have to get to Preferences and do all of that yourself.
Step 4: Sign In to your GitHub account
If y'all click the superlative right icon on your "dashboard" it will requite you a drop downwardly card, where you lot can select "Your Profile" to go to your profile.
Stride 5: Create a Repository
Y'all tin can recall of "Repository"(repo in curt) as a folder. You create one and keep files in them. To shop your files on GitHub you need to create a repo get-go.
- Get to the "Repositories" tab on your profile
- Click "New"
- Name the repo
- Click "Create Repository"
(I named my repository "Hello_World".)
Afterward you click "Create Repository" you lot will be redirected to a page. The url of that folio in the url of your repo. You will demand that for the rest of the steps.
If you go back to your profile, you lot will see that a new repository has been created.
Y'all will be redirected to the repository page if you click on the repo.
You tin can become the url in that location as well.
Pace 6: Clone your Repository
At present information technology'due south fourth dimension to start adding files to the new repo. Y'all can work directly on GitHub, but it'south non very user-friendly. Nosotros similar to work offline on our computer and then upload the edited work, don't nosotros? GitHub allows you to practice exactly that.
We offset past cloning the repository which is kind of like downloading the folder to your computer. Only information technology is more flexible, yous don't take to upload the whole binder once again. You tin work offline and only button the changes to GitHub.
Go to GitHub Desktop and find the "Clone Repository" selection.
Type the url and cull the local directory.
(I named the folder "Hello_World" as well.)
Go select your binder on GitHub desktop. Your binder will be empty because you oasis't added anything yet.
If y'all had whatever files in your repo, your folder would have independent all the files at present.
Step 7: Edit
Any changes you make to the binder will be automatically shown on your GitHub Desktop. Make sure you have selected the electric current folder on your GitHub Desktop every bit 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 eight: Commit
When you edit a file you always save information technology before closing, don't you? Think of "Commit" equally saving changes. Yous need to commit earlier y'all tin upload it to GitHub.
Just similar when y'all save a file you need to name it earlier yous can click the save button, on GitHub Desktop, you need to proper name the commit before you lot can click the "Commit to main"
Equally soon as y'all offset typing a name, the button will automatically go clickable.
(It is a expert exercise to name the commit in a meaningful mode.)
Step nine: Push
At present that you have saved(committed) the changes , all y'all need to exercise is upload information technology. "Push button" is uploading all the changes to Github.
Go ahead and click "Push Origin".
Yous will now be able to run into the uploaded files on your GitHub repository.
Woo-hoo! Congratulations!
You have successfully uploaded your first file!
And then now that you know what all the terms mean and you lot are confident enough to use GitHub, you tin can switch to the command line considering there are a lot of other things you lot can practice with GitHub and some of them cannot be done using GitHub Desktop. You will demand the control line.
You will find all the necessary git commands here.
Source: https://sheikhadilina.wordpress.com/2018/03/05/upload-files-to-github-without-using-the-command-line/
Posted by: linnlefuld1996.blogspot.com
0 Response to "How To Upload Files To Github Without Local Repository Command Line"
Post a Comment