我在 git 中有一个现有项目,其他用户可以访问并且有很多分支:example_project_a
。
在我的机器上,我有一个该项目的变体,在我的机器上有很多变化,但它还没有在 git 中。
如何将我当前的项目添加为 example_project_a
的一个分支,以便与小组共享我的更改?
This similar question pushes it to the master of existing 但我不想影响主人。
最佳答案
基于 0x5453 和 ref 的评论工作:
git init
git add .
git commit -m "my commit"
git remote add origin <remote repository URL>
git push origin <remote branch name>
关于git - 将项目作为分支添加到git中的现有项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57577637/