Привет.
Я создал удалённый и локальный репозиторий.
Создал в локальном репозитории файл README.md и запушил в удалённый.
Удалил в локальном репозитории файл и хочу его из удалённого вновь вернуть.
Пишу:
PS D:\VS\UnknownEngine> git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: README.md
no changes added to commit (use "git add" and/or "git commit -a")
PS D:\VS\UnknownEngine> git pull
Already up to date.
PS D:\VS\UnknownEngine> git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: README.md
no changes added to commit (use "git add" and/or "git commit -a")
Ещё пробовал делать так:
PS D:\VS\UnknownEngine> git fetch origin
PS D:\VS\UnknownEngine> git merge origin/master
Already up to date.
PS D:\VS\UnknownEngine> git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: README.md
no changes added to commit (use "git add" and/or "git commit -a")
По итогу ничего не меняется.
Почему так?