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 statusit'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, ~ or home♪ There's definitely no need. To get him out of there, just remove the file. .git (sighs) https://ru.stackoverflow.com/q/169493/181472 😞

    rm -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.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2