最近、レポを追加しましたhttps://github.com/me/myRepo
。次に、ローカルで(自分のコンピューターで)ファイルを削除しましたが、rm ~/myDir/myFile
現在githubで削除しようとしていますが、成功しませんでした。やった:
cd ~/myDir
git rm myFile (I had already remove the file physically)
git add -A
git push
しかし、ファイルはまだそこにあります...
私がする時
git commit -a
git push
これは機能していません。
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.