我还在和Git挣扎.
事情是:
我们是两个人在一个项目上工作.
我创建了一个名为relation的master的新分支.
现在我的朋友已更新主人但需要我修复一些错误.
当我在Netbeans中切换到分支时,它给了我所有"关系" - 改变并希望我提交它们.
那不是我想要的!
Netbeans网站告诉我这个[切换到分支]:
Switch to Branch
Actor: User
Action: User wants to switch to a branch (see also Checkout)
"Priority:" 1
Scenario:
User selects a versioned context and invokes 'switch branch' from the main menu
User specifies the branch and additional options - keep local changes etc.
The working tree is switched to the specified branch
Run Code Online (Sandbox Code Playgroud)
和[结账]:
查看
Actor: User
Action: User wants to checkout a specific revision/tag/branch
"Priority:" 1
Scenario:
User selects a a versioned context and invokes 'chekout' from the main menu
User specifies the revision/tag/branch to checkout
The working tree will be switched to the specified revision
Run Code Online (Sandbox Code Playgroud)
我对GIT感到头痛!
那么两个人之间的区别是什么?
我需要有人能够切换到[Master]分支,然后更新bug,然后切换回我的[Relation]分支,而不是git告诉我在[Master]上提交来自[Relation]的更改科