JavaScript
- 31 ответ
- 0 вопросов
52
Вклад в тег
$ git status
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: myfile
git checkout myfile
git checkout abcde myfile # abcde — хеш коммита
# или
git checkout feature3 myfile # feature3 — имя ветки
git remote -v
origin https://github.com/YaroslavShilov/Blank.git/ (fetch)
origin https://github.com/YaroslavShilov/Blank.git/ (push)
git remote rm origin
git remote add origin git@github.com:YaroslavShilov/Blank.git
git remote -v
origin git@github.com:YaroslavShilov/Blank.git (fetch)
origin git@github.com:YaroslavShilov/Blank.git (push)