14
Fast and Easy Way to Upload Code to Github
In this quick tutorial we will look at how to get your existing project uploaded to Github, by using the Github interface and a few simple git commands.
First set the remote origin, meaning the url outside of your computer where you want to upload.
This is done through this command where you need to change git-repository-url with your specific url:
- git remote add origin git-repository-url
- git add . (adds everything to staging)
- git commit -m "Git message" (Commits staged changes with message inside quotes)
- git push --set-upstream origin master (points to the place you want to upload your code to and push it to remote origin on Github)
I still use this method of uploading my project, because it's so simple and fast. I don't really have to remember anything except for the fundamentals of Git.
I really appreciate subscriptions to my Youtube channel. A big thank you if you feel like subscribing.
And if you want to follow me on Twitter, or just give some feedback that's awsome too! 👍
📺 YouTube
I try to get out new web dev content on Youtube every week, particularly about fullstack, and sometimes I write articles like this one.
Hope you enjoy!
14