Github does not allow me to push

1

I have been using github recently and until now I had become accustomed to every time I wanted to upload new files or changes of files to my repository, simply put everything inside a directory, then put:

-git add *
-git commit -m "modificaciones, cosas nuevas, etc.."
-git push

And that's it, that's how it always worked for me. However now, I can not. When doing the commit I get it with

  

changes not staged for commit

and it just marks me the directory that I want to upload. And when doing the push he says

  

Fatal: the current branch has not upstream branch

I do not understand what happened, why did it stop working if it was so good before?

    
asked by Felipe Pino 24.08.2016 в 17:23
source

1 answer

2

According to the Pastebin (Ps) that you showed verify if you are pointing to your git hub with:

git remote --v

If you cloned your repository you should have something like this:

origin  https://github.com/ashcrimson/CodeIgniter.git (fetch)
origin  https://github.com/ashcrimson/CodeIgniter.git (push)

In your Ps you have an error, you must specify your URL or configure the remote repository, for this you can do the following:

git remote add origin https://github.com/ashcrimson/CodeIgniter.git

Then you can make your push with:

git push <name>

For this case name would be origin .

Verify the documentation of git in Spanish is good:

Git Basics - Working with remote repositories.

    
answered by 25.08.2016 в 16:30