I recently added a repo on https://github.com/me/myRepo. Then locally (on my computer) I removed a file rm ~/myDir/myFile I am trying now to make it disappear on github without success. I did:
cd ~/myDir git rm myFile (I had already remove the file physically) git add -A git push But the file is still there...
When I do
git commit -a git push This is not working, I get
statquant@euclide:~/.vim$ git commit -a # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: bundle/Align (untracked content) # modified: bundle/Clang_Complete-Pathogen (untracked content) # modified: bundle/Vim-R-plugin (untracked content) # modified: bundle/bash-support.vim (untracked content) # modified: bundle/git (untracked content) # modified: bundle/nerdtree (untracked content) # modified: bundle/perl-support.vim (untracked content) # modified: bundle/snipmate (modified content, untracked content) # modified: bundle/tasklist (modified content) # no changes added to commit (use "git add" and/or "git commit -a") statquant@euclide:~/.vim$ git push To https://github.com/statquant/.vim.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/statquant/.vim.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
git pullfirst.