【发布时间】:2016-08-21 18:28:37
【问题描述】:
我在文件夹中添加了一个文件用于 Git 上传。我可以在未暂存的 SourceTree 中看到该文件夹。如何使用终端命令将文件推送到在线存储?
我发现我需要先 cd 到本地存储库,我这样做了:
cd /Users/mainuser/Desktop/Projects
git add -A .
使用git status 检查状态并输出:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: ios_projects/2016/Untitled copy 2.rtf // this is the file I want to upload
现在呢?如何提交并在线推送?
【问题讨论】:
标签: git command-line terminal