Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将两个文件添加到本地 gitlab(git hub 的学术克隆)存储库,然后将它们推送到远程 gitlab 存储库的主分支。
我使用这些命令,它们运行没有错误,但不将文件添加到远程仓库。
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