|
|
|
|
|
by base698
4795 days ago
|
|
It's only complicated because people don't realize how it works. Half the people in this thread advocating to use rebase aren't saying when it's ok and when it's not ok and why. When it's ok: You are working on your own line and the commits you've made are not in a central repo. Why: Git commits are a hash tree and when you change one commit it changes all the SHAs that come after it. This makes git see your commits pushed remote as different then the ones that are local. The commits have the same changes so it puts duplicate conflict markers everywhere. Most people love it once they realize how it works. A lot of people use version control also as a backup in case their hard drive fails. Because of this they are scared of staying on a topic branch for very long, so they push then rebase often leading to conflicts which are scary. https://en.wikipedia.org/wiki/Hash_tree |
|