I'm a bit confused about how to use IntelliJ's VCS options correctly.
We're working on a Git repo and I would like to understand how I can do the following in as few steps as possible:
- Stage and commit (prompt me for the "commit message")
- Pull/Push and Merge (automatically resolve conflicts that happened within the same class if the conflicts were not on the same line)
Indeed, if two different persons work on the same class, some times it is obvious that merges should be accepted if the two persons did not work on the same part of the class. Yet so far I've always had to specify the way I wanted the merge to happen in those cases.
I've read a bit about the "Update" option and I'm not sure I really understand what it does exactly. It does the Pull and Merge?
stash
and thenpull --rebase
orpull && merge
depending on the option you chose.stash
andrebase
are somewhat unknown to me as well. And does themerge
do any automatic-resolving when one version of a class has a modification on line 2 and my version has a modification on line 234 so that I'm not prompted to confirm that the merge should indeed happen ?