从github下载zip文件,然后按新分支
我通过按下载zip按钮从分支GitHub下载代码,然后解压缩文件并进行一些更改。无论如何,我是否可以将该代码与新分支相同的回购?
I download code from a branch github by pressing download zip button then I unzip the file and make some change. Is there anyway i can push that code to the same repo as a new branch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建新分支:
git Checkout -b<分支的名称>
转到新分支:
git Checkout<分支的名称>
检查文件状态:
git git status
添加已更改的所有文件:
git add>
提交文件:
git commit -m'< commit Message>“
将:
git push -u rigins< branch>
的名称Create new branch:
git checkout -b <name of branch>
Go to new branch:
git checkout <name of branch>
Check status of files:
git status
Add any files that have been changed:
git add <files>
Commit files:
git commit -m "<commit message>"
Push to GitHub:
git push -u origin <name of branch>