How to Upload Site to Github Terminal
Github is Crawly. It allows you to exercise a lot of cool things, i of which is storing your files. It'due south different from any other online data storage because you don't have to re upload the entire file every time you make some changes. Y'all can work offline and then all of you have to practice is commit the changes and push it to the origin.
Github allows many people to contribute to a unmarried project as well (Check this out to learn nigh CONTRIBUTION on GitHub).
The very showtime time I tried to upload something on GitHub I institute it very confusing. I went through a lot of blogs and videos only couldn't observe whatsoever like shooting fish in a barrel fashion to upload the files. Even though I am comfortable with using last commands, I didn't want to blindly utilize the git commands without agreement annihilation.
And so I found GitHub Desktop!
It can be a very skillful culling for someone who is simply getting started. Information technology doesn't just make things easy. It likewise kind of lets yous visualise and understand the git terminology.
Follow these easy steps to successfully upload your offset file :
Since you lot are planning to utilise GitHub, I think I can assume that you know how to create an business relationship and how to install a software and then I won't go into the details of the first two steps.
Y'all probably have an account already, y'all just demand to download and install GitHub Desktop.
Step one : Create a GitHub business relationship
Pace 2 : Download and Install GitHub Desktop
Step 3: Setup your GitHub Desktop
If you are using Windows, information technology will automatically inquire you to sign in and configure your git. If you are using a Mac, you will have to go to Preferences and do all of that yourself.
Step four: Sign In to your GitHub account
If you click the elevation correct icon on your "dashboard" it volition give you a drop down carte du jour, where y'all can select "Your Profile" to go to your profile.
Step 5: Create a Repository
You can think of "Repository"(repo in short) as a folder. You create ane and keep files in them. To store your files on GitHub you need to create a repo outset.
- Get to the "Repositories" tab on your profile
- Click "New"
- Name the repo
- Click "Create Repository"
(I named my repository "Hello_World".)
After you click "Create Repository" you volition be redirected to a folio. The url of that folio in the url of your repo. You will need that for the residuum of the steps.
If you lot become back to your contour, you will see that a new repository has been created.
You volition exist redirected to the repository page if you click on the repo.
You tin get the url there as well.
Step 6: Clone your Repository
Now it'due south time to starting time calculation files to the new repo. You can work directly on GitHub, simply it's not very convenient. We like to work offline on our computer and then upload the edited piece of work, don't we? GitHub allows you to practise exactly that.
We start by cloning the repository which is kind of similar downloading the folder to your computer. But it is more flexible, yous don't accept to upload the whole folder again. You can work offline and only push the changes to GitHub.
Go to GitHub Desktop and detect the "Clone Repository" selection.
Type the url and choose the local directory.
(I named the binder "Hello_World" likewise.)
Go select your folder on GitHub desktop. Your folder will be empty considering you oasis't added anything even so.
If you had whatsoever files in your repo, your folder would take contained all the files now.
Pace vii: Edit
Any changes you make to the folder will be automatically shown on your GitHub Desktop. Make sure yous have selected the electric current binder on your GitHub Desktop also.
For example, I'll create 3 new files in the "Hello_World" folder(left image) and they automatically announced on GitHub Desktop(correct image)
Step 8: Commit
When you lot edit a file you always relieve information technology before closing, don't you? Retrieve of "Commit" equally saving changes. You demand to commit earlier you tin upload it to GitHub.
Just like when yous salvage a file you need to proper noun information technology earlier you can click the relieve push, on GitHub Desktop, you need to name the commit before you can click the "Commit to chief"
Equally soon as you offset typing a proper noun, the button will automatically become clickable.
(Information technology is a good practise to name the commit in a meaningful way.)
Stride 9: Push
Now that you have saved(committed) the changes , all you lot need to do is upload information technology. "Push" is uploading all the changes to Github.
Go ahead and click "Push Origin".
You volition at present be able to see the uploaded files on your GitHub repository.
Woo-hoo! Congratulations!
You have successfully uploaded your showtime file!
So at present that yous know what all the terms mean and y'all are confident enough to use GitHub, you tin switch to the command line because in that location are a lot of other things you lot can do with GitHub and some of them cannot be done using GitHub Desktop. You volition need the command line.
You lot 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/
0 Response to "How to Upload Site to Github Terminal"
Enviar um comentário