I hate git and I'm bad at it. I have a question.

I have a repo with two remotes, RA and RB. Both are on BitBucket. Both remotes use git-lfs. On BitBucket, each repo has its own unique git-lfs endpoint associated with it.

I wish to check out branch bb, which is in repo RB. I say `git fetch RB bb`. Then I say `git checkout -b bb --track RB/bb`. It fails with "Object does not exist on the server: [404]" during lfs smudge. It prints the hash, and I can confirm, yup, that hash is in the server.

Follow

@mcc
After you run `git fetch RB bb` then FETCH_HEAD should point to the commit that was fetched. I would then create a branch from that `git branch bb FETCH_HEAD`. Then later you can make it track remote branch using `git branch --set-upstream-to RB/bb bb`

Not sure if it's all that different from what you already tried though 🤔​

· · 0 · 0 · 1
Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!