A project I'm working on have two branches named as: Feature/something and feature/something
I need to work in both for a while
On Windows I'm facing errors using GitBash and AndroidStudio.
After doing checkout of the Feature/something, on pull or fetch I receive the following error:
git fetch
error: cannot lock ref 'refs/remotes/origin/Feature/something': is at 0dd1cd393b4af49d2ad90a22c813b607078a7e0c but expected 44b50f539d55835a9e2e1f22c406561bf4a6dc95
From http://myurl/myproject
! 44b50f5..600f329 Feature/something -> origin/Feature/something (unable to update local ref)
I was working without problems on the feature/something branch.
On cloning again and making checkout of the Feature/something branch first I can work fine with that branch but the problems occur with the feature/something branch.
Any idea on how to work on both branches in the same local repo?