gpt4 book ai didi

git - 发送带有未提交更改的 git repo 的最佳方式?

转载 作者:太空狗 更新时间:2023-10-29 14:39:12 25 4
gpt4 key购买 nike

我有一个 git 存储库,其中有很多未提交的更改。发送我未提交的更改以供其他人继续工作的最佳方式是什么?

最佳答案

创建功能分支:

git checkout -b MySpecialFeature

提交到功能分支:

git add -A
git commit -m "All my changes for SpecialFeature."

远程推送该分支。

git push -u origin MySpecialFeature

然后让您的特别人员检查您的功能分支。

git checkout origin/MySpecialFeature

关于 git 远程分支的详细讨论,请参见: How do you create a remote Git branch?

关于git - 发送带有未提交更改的 git repo 的最佳方式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18540565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com