Skip to main content

How to upload your work on Github (Easy and Fast)

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

Popular posts from this blog

Miserable

 This one word could describe my life right now. I am writing this because of the last book I read talking about how to re-organize your life. 32 days ago, my dad has gone. In the beginning, I couldn't cry. Now, I can't stop crying about everything. Everything reminds me of him. His favorite stuff became my nightmare. I dream of him every day, too. One week from his death, I took my exams. I didn't remember how I did in them. I knew they were not how I supposed to do, but I am not aware of how I did. I wish I could have cried when he passed. I wanted to cry a lot but I didn't have the ability to face myself with the fact of his death.  He died between my shoulders. I just saw his color turned to yellow like how my grandpa seemed before death. I heard my brother told him some prayers that a person says before death and I just shouted at him to stop. I spent time squeezing his feet to make him shocked. I even talked to him, I said don't go, don't leave me, not now...

Fate degree

The world became unfolding before our eyes.  THE BIG GHOST! "Global warming".  Listen up!  Historically, there are two ice ages. One of them was in the Middle Ages form the 12th to 14th centuries, followed by a "little ice age" lasts at the early 19th century, but here we are, 1998 was the warmest year in the warmest decade in the warmest century of the last millennium. Therefore, Scientist predicts the Overhasty end for this Earth and creatures thereon.  Is the greenhouse effect can be considered as the worst phenomena? Unusually, No. The greenhouse has many unexpected advantages and before you misunderstanding, this explanation of the issue. "THE GREENHOUSE" is essential for our life on this Earth, Greenhouse main gases are Water Vapor and carbon dioxide (co2), without these two gases the surface of our lovely Earth will be covered and become frozen. Certain gases in the atmosphere trap heat radiated from the Earth's surface, ...

Inputs and Outputs in Python 3

Recently, I was training on some libraries in Python 3 and I noticed that the most difficult was not the questions, but the way you are going to take your input and present your output.  So, I'd like to show some ways I've learned and it may help you, too.  1. Lists:  Taking separated input like:  2 3 4 5 6 7 and put them into the list can be done by map function:  a = list (map(int, input().split())) or  a = tuple(map(int, input().split())) same if inputs are float - I will say that you don't need to do the same if the inputs were string! because the string is easily added into a list like:  a = input().split() < it put them directly into a list>  ___________________________ If you'll take 2 separated numbers and you are going to use just one of them, so:  you may use one of those ways:  n, m = list(map(int, input().split()) ) and use them by their names n, m, and so on.  or you can use:  p = input().split() them if yo...