I have an old file that I want to update, so I created a branch. I
checkout the branch, and edit the file. But when I checkout branch
'main', I find that the file is edited there as well! I do a git
restore on main, and the file is also restored in the branch. It's as
if there are no branches at all. What's going on?
Post a reply to this message