|
|
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
|
|
|
|
On 2023-05-07 15:26 (-4), Cousin Ricky wrote:
> 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?
I think I have an inkling of what's going on. Part of my problem is
that it was hard to find Web search keywords that didn't give me complex
instructions on how to accomplish *precisely* what I'm trying to avoid
happening. But what I managed to find is that it has to do with working
directories and indexes and stages and commits and... somehow the stash
command is supposed to help me with this, but before I touch that, I
think I show know what the hell is going on. And I don't.
Git is so intricate it still has my head spinning. I'm glad I saved
intermediate copies of the file, otherwise I could have lost everything
I did since my last backup. I still haven't figured out how Git is
supposed to make my life easier.
Post a reply to this message
|
|
|
|
hi,
Cousin Ricky <ric### [at] yahoocom> wrote:
> ...
> Git is so intricate it still has my head spinning. ... I still haven't
> figured out how Git is supposed to make my life easier.
my own 'git' usage/knowledge is v basic, I (often need to) use an etext for ref.
<https://drive.google.com/file/d/12lJMJYfrEg3BNV9M70-6tfe7_gYHawsg/view?usp=sharing>
regards, jr.
Post a reply to this message
|
|