从github下载zip文件,然后按新分支

发布于 2025-01-29 12:43:09 字数 71 浏览 4 评论 0原文

我通过按下载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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

走过海棠暮 2025-02-05 12:43:09

创建新分支: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>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文