In a git merge conflict, what are the BACKUP, BASE, LOCAL, and REMOTE files that are generated?

后端 未结 2 817
说谎
说谎 2020-12-12 10:18

I assume the LOCAL and REMOTE files are just what their name suggests, but what are BASE and BACKUP for?

2条回答
  •  余生分开走
    2020-12-12 11:01

    In case of pulling (merging) in changes from a online repository into your local copy, you can understand REMOTE, LOCAL and BASE as:

    • REMOTE = Your local file including own modifications ('as on the filesystem')
    • LOCAL = The remote file inside the online repository ('changes made by other users')
    • BASE = The origin of both files ('without any modifications')

    The terms are from the point of view of the online repository which is what 'local' refers to. See also the wikipedia article about three-way merge.

提交回复
热议问题