I'm struggling to get this to work, most likely because of a lack of understanding of what each command is actually responsible for.
I have:
- "A", a bare repo
- "B" cloned from "A" (it should maybe be a branch in "A," instead, but let's start with this use case.) Initially, it was cloned as bare, but when merging, I need to have a working copy.
- "B" never pushes to "A"
Scenario:
- "A" gets whole 9 yards updated including dir 'Z'
- "B" had just one dir 'Z' changed
I want to:
- pull all changes from remote "A", except 'Z'
- keep changes from "B" made in 'Z' over those from "A" in any revision.
I've already tried to accomplish this by doing the following.
in "B":
git fetch -a -t origin
git merge --no-commit --no-ff TAG
git reset Z
git commit
It doesn't work.
git pull --rebase origin master
Still updates 'Z', so I don't know where to reset 'Z'.