VSCode"提交上演"成功但GitHub未更新

时间:2017-09-05 23:46:59

标签: github

成功将存储库从GitHub链接到本地​​,编辑后,文件model\genre.js需要上传并提交回GitHub。所以,我做到了,

  1. 在“源代码管理”面板的已更改列表中,单击" +"签署让它上演。文件从已更改升级为已暂存
  2. 同一小组,点击顶部的...,然后点击" Commit staged",按Enter键。
  3. 此文件已从Staged列表中删除,现在只有package.json和package-lock.json保留在Changed列表中,这是好的,因为我不想触及GitHub中的主人。
  4. 看起来很完美。检查GitHub,oops,显示更新是2小时前,刷新页面,仍然。打开文件并检查,没有我的最新更新。

    是不是因为我之前没有 分叉 呢?我对git push origin master --force

    有点犹豫

    这是来自VSCode的Git输出:

    Using git 2.10.2.windows.1 from C:\Program Files\Git\cmd\git.exe
    git rev-parse --show-toplevel
    git rev-parse --show-toplevel
    git status -z -u
    git config --get commit.template
    git fetch
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :app.js
    git show :populatedb.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :populatedb.js
    git fetch
    git show :populatedb.js
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git show :populatedb.js
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git fetch
    git show :populatedb.js
    git status -z -u
    git show :populatedb.js
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :populatedb.js
    git show :models/genre.js
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    git show HEAD:models/genre.js
    git add -A -- c:\Users\Admin\Documents\LEARN\express-locallibrary-tutorial\models\genre.js
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    git commit --quiet --allow-empty-message --file -
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show HEAD:models/genre.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show HEAD:models/genre.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show HEAD:models/genre.js
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    git fetch
    git status -z -u
    git symbolic-ref --short HEAD
    git rev-parse master
    git rev-parse --symbolic-full-name --abbrev-ref master@{u}
    git rev-list --left-right master...origin/master
    git for-each-ref --format %(refname) %(objectname)
    git remote --verbose
    git show :models/genre.js
    

1 个答案:

答案 0 :(得分:1)

vscode提交后需要从终端

推送更改