Я искал в StackOverflow похожие вопросы, но всегда кажется, что люди пытаются перейти из своей ветки на мастера.Для меня это наоборот.Я на мастере и пытаюсь оформить заказ на ветку, которая уже была нажата.
Когда я делаю:
git checkout mybranch
Я получаю:
error: Your local changes to the following files would be overwritten by checkout:
db/structure.sql
Please commit your changes or stash them before you switch branches.
Aborting
Iпробовал с:
git checkout -f mybranch
, но я получаю сообщение:
error: Entry 'db/structure.sql' not uptodate. Cannot merge.
Если я пытаюсь сохранить или зафиксировать, это не имеет значения:
git stash
No local changes to save
git checkout mybranch
error: Your local changes to the following files would be overwritten by checkout:
db/structure.sql
Please commit your changes or stash them before you switch branches.
Aborting
или
git commit
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
git checkout mybranch
error: Your local changes to the following files would be overwritten by checkout:
db/structure.sql
Please commit your changes or stash them before you switch branches.
Aborting
git submodule status
ничего не возвращает, а git status -u
возвращает:
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
Любые предложения относительно того, что делать, чтобы это исправить?