Phorce
Phorce

Reputation: 2674

Not pushing / Committing changes

I am trying to Push/Commit a changes to a repository but on Github and I keep getting the error:

Everything up-to-date

Even when I have updated the files in the repository. I have tried:

git push

git push -f

git add "filename"

But none of of these commands seem to be updating the repository (when I check online). Does anyone know why, or, have any suggestions to what I can use?

Hope someone can help me.

Upvotes: 0

Views: 50

Answers (1)

Xavier
Xavier

Reputation: 4017

First of all

Everything up-to-date

is not really an error, it's more a everything-is-ok message :)

The workflow with git is like - assuming you already done the git init:

  1. Add/edit files in your local repo
  2. git add filename to warn git that you add some new files
  3. Then git commit -m filename to commit your change, the -m is for message. git will ask you what is the commit message.
  4. When ALL this steps are done, well you can make many commit before pushing, but, when your done git push origin will send all your modification to the server.

Here is a link for a complete manual about git workflow

Upvotes: 1

Related Questions