How to upload a simple file

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


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

…or create a new repository on the command line

echo "# Computacional-II" \>\> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin push -u origin master

…or push an existing repository from the command line

git remote add origin 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?

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” upon creating a repository (a repository with a file called 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

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