我在主线分支中有一个远程存储库。我想添加一个私人分支,该分支可以单独访问我和我的朋友。如何在该私有分支中提交和推送代码。 您能用git命令帮助我完成以下任务吗?我正在使用Windows操作系统。
1. create a private branch
2. add a friend to the branch
3. commit and push the code to the branch
这是我所在的分支。我需要将项目存储库推送到创建的私有分支中。
C:\Users\MyProject>git branch
* mainline