我不能提交(你的分支是最新的'origin / master') [英] I can't commit (your branch is up-to-date with 'origin/master')
问题描述
我在gitlab上创建了一个项目,并且我添加了一个用户作为开发人员,所以我的同事克隆了正确的项目,并且他创建了一个新文件,但是当他尝试使用以下命令时:
git commit -a -mupdate
他得到了这个消息:
任何解释和帮助?
$ b
git init
如果您想提交所有人文件代码只需键入
git add。
之后,您可以做
-
git commit -mFirst commit
下一个 - >
-
git remote添加来源远程存储库URL
,
-
git push origin master
ul>
希望有帮助。
更有用的参考资料 - > github文档现有项目
I created a project on gitlab and i added a user as developer, So my colleague clone the project correctly and he created a new file but when he try to commit with the following command :
git commit -a -m "update"
he got this message :
any explanation and help ?
after you do
git init
if you want submit all of you file code just type
git add .
after that you can do
git commit -m "First commit"
next ->
git remote add origin remote repository URL
in the end,
git push origin master
hope it's help.
more useful reference -> github docs existing project
这篇关于我不能提交(你的分支是最新的'origin / master')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!