[英]git: update remote repository with my new files
我是 git/github 的新手,正在从事自动化测试项目。 虽然我熟悉基本的 git 命令,也阅读了很多关于它的文章,使用的命令和使用时间,但我没有信心将它们应用到我公司的实时项目中。
所以有一个具有文件夹结构的远程存储库:
Folder 1
Folder 2
Folder 3
TC1
TC2
TC3
所以 TC(测试用例文件自动化)在文件夹 3 中。文件夹 3 在文件夹 2 中,等等。这是整个前端项目结构。
我在本地克隆了这个存储库。 创建了一个名为 my-sample-tests 的分支。 然后我创建了一个新的 TC(测试用例文件),比如 TC6。 所以这就是我所在的位置:我做到了:
$git add .
$git commit -m "file TC6"
$git status
On branch my-sample-tests
Your branch is ahead of 'origin/my-sample-tests' by 432 commits.
(use "git push" to publish your local commits)
如果我的代码应该与其他测试文件一起位于远程 git 上,我的下一步应该是什么。
感谢你的帮助!
现在您已将更改committed
到local working directory
。 为了将这些更改推送到 github 上托管的remote repository
,您需要通过执行以下操作推送这些文件或技术上的commits
:
git remote push origin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.