I had a problem with uploading any of my work on Github. Amr El-Naggar, A friend of mine, helped me to upload it fast.
Here we go!
Consider this is the file I want to take some project from to upload on my Github:
Click on the bar to write sth new:
Write "cmd" to pop up your command shell
Open your Github Profile > Repositories > New > write the name > Create
Copy the URL
Back to your Command shell and write:
(only the first time)
git init
git add .
git commit -m "Any message to say what you have done in this commit"
(only the first time)
git remote add origin xxxxxxxxx (replace xxx with the link of the repo, ex: https://github.com/MennaEwas/Numerical-Labs)
git push -u origin master
if you edited any files:
git add .
git commit -m "Any message to say what you have done in this commit"
git push -u origin master
You can easily copy and paste the lines
You have to see Done!
Check the uploaded Files:
Note: If you want to upload just one project. Put it alone in a file and accomplish the following steps!
I am waiting for your comments, Friends.
See you later.
Comments
Post a Comment