Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

How to upload a simple file

Solved! Go to Solution.

I created an GitHub account and want to populate it. I am using Linux Mint.

I had access my repository  wilmaracl/Computacional-II.git.

I choose    <>Code     but the    Upload File    option wasn't there. On that page I found:

 

 

Quick setup — if you’ve done this kind of thing before

 
or
   HTTPS    SSH     git@github.com:wilmaracl/Computacional-II.git

 

We recommend every repository include a README, LICENSE, and .gitignore.

…or create a new repository on the command line
 
echo "# Computacional-II" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:wilmaracl/Computacional-II.git
git push -u origin master
…or push an existing repository from the command line
 
git remote add origin git@github.com:wilmaracl/Computacional-II.git
git push -u origin master
…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

 

I've done something wrong? There are things that I didn't do?

2 Replies
Solution
Commander Lvl 2
Message 2 of 3

Re: How to upload a simple file

Hi and welcome @wilmaracl,

 

You have created an empty repository. This is handy for when you already have a functioning Git repository offline and just want to "import"/push it to GitHub. However, you don't have that.

 

To accomplish what you would like, you can do two things:

  1. Create an empty repository like you did here, then create a local repository, create the files in there and push that local repository
  2. Check the box "Initialize this repository with a README.md" upon creating a repository (a repository with a file called README.md will be created and you will see the regular view you are used to when visiting the repository)

 

As for this specific case, to accomplish what you need you can do the following things:

  • Using solution 1 is still possible, so if you would like that go ahead and do that
  • If you would like to go with the second solution, delete the repository and create a new one with the box checked

- Mark
Copilot Lvl 2
Message 3 of 3

Re: How to upload a simple file

Thank you Mark.

I did the first option and it works.

Now I already have my first Python (Serie RLC circuit) on my repository Computacional-II

Wilmar - Electrical Engineer - Brazil - Goiás - Goiânia