How to remove files from git staging area?

后端 未结 14 1127
失恋的感觉
失恋的感觉 2020-11-28 16:53

I made changes to some of my files in my local repo, and then I did git add -A which I think added too many files to the staging area. How can I delete all the

相关标签:
14条回答
  • 2020-11-28 17:52

    I tried all these method but none worked for me. I removed .git file using rm -rf .git form the local repository and then again did git init and git add and routine commands. It worked.

    0 讨论(0)
  • 2020-11-28 17:53

    To remove all files from staging area use -
    git reset
    To remove specific file use -
    git reset "File path"

    0 讨论(0)
提交回复
热议问题