Git. How to roll after git add *.c
-
Trained and carried out teams:
$ git add *.c $ git add README $ git commit -m 'initial project version'
git add .README
Completed by mistake.After that,
git status
it's a huge list.Maybe it's not a problem, if so, I'll be grateful for a simple explanation.
-
Answering the question, cancel everything.
git add ...
one team:git reset .
In this particular case, something else is important. You created a repository guitar in your home directory, that is,
~
orhome
♪ There's definitely no need. To get him out of there, just remove the file..git
(sighs) https://ru.stackoverflow.com/q/169493/181472rm -r ~/.git
Then create a new folder:
cd ~ mkdir learn_git cd learn_git # создаем репозиторий git git init
Now in this folder, you're doing your training experiments.