Question: My Github repo won't update after `git push -u origin master` command!
It says:

```
Branch 'master' set up to track remote branch 'master' from 'origin'. Everything up-to-date

```

The result for `git remote show origin` is:

```
* remote origin
  Fetch URL: git@github.com:MyGithubID/RepoName.git
  Push  URL: git@github.com:MyGithubID/RepoName.git
  HEAD branch: master
  Remote branch:
    master tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (up to date)

```

and for `git status`:

```
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    new file:   myFile.m

```

I have no idea what is going on! I tried `git push --all origin` and it says: `Everything up-to-date` but it's not!
I'm new with git; I checked 'config' file in my .git directory and the information is correct. What is wrong with my git?!

Answer: 
Follow the official documentation:- 
 <https://git-scm.com/docs/gittutorial>

Before push you will have to first add all the resources where the changes you have done. 

```
git add .  or git add --all

```

Then commit it using 

```
git commit -m "your message".

```

and push code using 

```
git push origin master  == replace master with your remote branch 
                                            name where you want to push.

```
You can also get a situation where you've pushed remotely, and if you do `git log` it'll show *(HEAD -> master)* next to your latest commit, but *origin/master* is seemingly out of date (showing several commit messages down).

To resolve this I verified the state of the repository I'd pushed to at the other end, then ran `git pull origin master` locally.