Can git pull only be used on branches?

can I detect code conflicts on the main branch if there is no branch, git pull

Jul.21,2021

Yes.
are all the same


can be the same

Open the conflicting file, where the content between Updated upstream and = is the content from pull, and the content between = and stashedchanges is the content modified locally. In this case, git doesn't know which line of content is needed, so it's up to you to determine what you need. Once the
resolution is complete, you can submit normally.
Menu