Не знаю, как это случилось, но сегодня утром я попытался перебазирование моего кодовый и .gitmodules
не допустятGit не будет препятствовать перебазироваться несмотря на отсутствии дифф
Terminal дамп:
~/codebase > git pull --rebase origin master
From https://gitlab.site.com/site/site
* branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
error: Your local changes to the following files would be overwritten by checkout:
.gitmodules
Please, commit your changes or stash them before you can switch branches.
Aborting
could not detach HEAD
~/codebase > git status
On branch master
Your branch is behind 'origin/master' by 75 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Untracked files:
(use "git add <file>..." to include in what will be committed)
.DS_Store
_test_certs/
db_dump.sql
dump.rdb
local.py
nohup.out
nothing added to commit but untracked files present (use "git add" to track)
diff
также выиграл «т показать разницу:
~/codebase > git diff
~/codebase >
Даже пытался update-index --assume-unchanged
но din't работал:
~/codebase > git update-index --assume-unchanged .gitmodules
~/codebase > git pull --rebase origin master
From https://gitlab.site.com/site/site
* branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
error: Your local changes to the following files would be overwritten by checkout:
.gitmodules
Please, commit your changes or stash them before you can switch branches.
Aborting
could not detach HEAD
~/codebase > git checkout master .gitmodules
error: pathspec '.gitmodules' did not match any file(s) known to git.
Я попытался проверить .gitmodules
от master
, даже HARD reset
..no использовать ... и так как этот файл находится в мастере, а также, я не могу перебазировать его ... так циклический вопрос ...
'Пожалуйста, внесите изменения или запишите их, прежде чем вы сможете переключаться между ветвями. Ваш рабочий каталог загрязнен. Пожалуйста, позаботьтесь о файле '.gitmodules', а затем повторите попытку. В остальном ваш вывод также указывает, что ваш локальный 'master' _way_ за пультом, так что да, хорошая здоровая перебаза просрочена^^ –
Я попытался проверить' .gitmodules' с master..no use ... и с тех пор этот файл также находится в 'master', я не могу его переустановить ... так что циклическая проблема ... получить смысл? :) – NoobEditor
Вы попробовали 'git checkout - .gitmodules'? Ваша предыдущая команда 'git checkout' не будет работать, я верю. –