简体   繁体   English

我无法将其推送到我的存储库,它说您的分支是“上游/主服务器”的最新信息,但我对文件进行了更改

[英]I can't push to my repository it says Your branch is up-to-date with 'upstream/master' but I have made changes to my files

I can't push to my GITLAB repository I am get this when trying to push to my repository. 我无法推送到我的GITLAB存储库,而尝试推送到我的存储库时却得到了这个提示。 There was not any problems a few days ago pushing to my repository. 几天前推送到我的存储库没有任何问题。

C:\projects\304cem>git commit -m"whatever"
On branch master
Your branch is up-to-date with 'upstream/master'.
Changes not staged for commit:
        modified:   config/helperFunctions.js
        modified:   controllers/setupController.js
        modified:   controllers/userController.js
        modified:   package.json

Untracked files:
        node_modules/.bin/_mocha
        node_modules/.bin/_mocha.cmd
        node_modules/.bin/forever
        node_modules/.bin/forever.cmd
        node_modules/.bin/mocha
        node_modules/.bin/mocha.cmd
        node_modules/forever/
        node_modules/mocha/

no changes added to commit

You changes are currently unstaged, do a git add . 您所做的更改当前未进行,请执行git add . to stage them for commit. 安排他们提交。 To make sure that you have indeed staged your changes, do git status . 为了确保您确实进行了更改,请执行git status This should show you changes staged for commit. 这应该显示您为提交而进行的更改。

If you don't want to explicitly stage files for commit, use the -a flag while committing. 如果您不想显式暂存文件进行提交,请在提交时使用-a标志。 This will automatically stage your changes and commit. 这将自动暂存您的更改并提交。

git commit -a -m "message"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我不能提交? (您的分支是最新的“origin/master”,未添加任何更改提交) - Why can I not commit? (Your branch is up-to-date with 'origin/master', no changes added to commit) 我无法推送我的git分支,所有内容都是最新的,但没有任何推送? - i can't push on my git branch, everything is up-to-date, but nothing is pushed? 我无法提交(你的分支是最新的,带有“origin/master”) - I can't commit (your branch is up-to-date with 'origin/master') 如何更新我的本地 master 分支以包含对我的本地 feature 分支所做的更改,这些更改在 origin (remote) master 上是最新的? - How to update my local master branch to include changes made to my local feature branch that are up-to-date on origin (remote) master? git push origin master说,当我编辑并提交文件后,一切都保持最新 - git push origin master says Everything up-to-date when I've edited & committed files git 推送说“一切都是最新的”,即使我有本地更改 - git push says "everything up-to-date" even though I have local changes 分支与原始/主节点保持最新,但是由于某些原因,Git告诉我我有要提交的更改? - Branch is up-to-date with origin/master but for some reason Git is telling me I have changes to be committed? 为什么我不能在BitBucket存储库中提取新代码? 说“已经是最新的”,但我还没有全部推送的代码 - Why I can't pull the new code on the BitBucket repository? Says “Already up-to-date” but I have not all the pushed code 使我的个人功能分支与我分叉的项目的主分支保持最新 - Keeping my personal feature branch up-to-date with the master branch of a project I 've forked Git推送分支说它是最新的,但不是 - Git push on branch says its up-to-date but it isn't
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM