Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 为什么不';我的文件没有被添加_Git_Gitlab - Fatal编程技术网

Git 为什么不';我的文件没有被添加

Git 为什么不';我的文件没有被添加,git,gitlab,Git,Gitlab,我试图将两个文件添加到本地gitlab(GitHub的学术克隆)repo,然后将它们推送到远程gitlab repo的主分支 我使用这些命令,这些命令运行时不会出错,但不会将文件添加到远程repo a$ git add slides1.pptx a$ git add slides2.pptx a$ git push origin master Ubuntu 12.04.2 LTS gitlab ssh-pty Everything up-to-date 我缺少什么?您忘记提交: a$ g

我试图将两个文件添加到本地gitlab(GitHub的学术克隆)repo,然后将它们推送到远程gitlab repo的主分支

我使用这些命令,这些命令运行时不会出错,但不会将文件添加到远程repo

a$ git add slides1.pptx 
a$ git add slides2.pptx 
a$ git push origin master
Ubuntu 12.04.2 LTS gitlab ssh-pty

Everything up-to-date
我缺少什么?

您忘记提交:

a$ git commit -m "Added 2 *.pptx files"
只有在您提交更改后,才能将更改推送到远程:

a$ git push origin master
您忘记提交:

a$ git commit -m "Added 2 *.pptx files"
只有在您提交更改后,才能将更改推送到远程:

a$ git push origin master
您忘记提交:

a$ git commit -m "Added 2 *.pptx files"
只有在您提交更改后,才能将更改推送到远程:

a$ git push origin master
您忘记提交:

a$ git commit -m "Added 2 *.pptx files"
只有在您提交更改后,才能将更改推送到远程:

a$ git push origin master