如何在不更改 master 的情况下从当前文件创建 git 分支?
我正在主分支上进行一个小更新,它很快演变成应用程序的新版本。然而,我从一开始就不够整洁,无法创建一个新分支,所以现在我陷入了与主分支巨大不同的困境,并且无法提交和协作。
有什么方法可以将我的更改放入新分支(“实验室”或其他分支)并将它们推送到 github 而不影响稳定的主分支?
谢谢!
I was working on a small update on the master branch, which quickly evolved into the new version of the app. However, I wasn't tidy enough to create a new branch from the beginning, so now I'm stuck being hugely different than the master branch and not being able to commit and collaborate.
Is there any way I can get my changes into a new branch ("labs" or something) and push them to github without affecting the stable master branch?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
后一个命令的语法是 git push [remote-repository-name] [branch-or-commit-name]
The syntax of the latter command being
git push [remote-repository-name] [branch-or-commit-name]