I accidentely said git rm -r .. How do I recover from this? I did not commit. I think all files were marked for deletion and were also physically...
  • May 6, 2022
  • 0 Comments
Say I have a file in my git repository called foo. Suppose it has been deleted with rm (not git rm). Then git status will show: Changes not staged...
  • April 30, 2022
  • 0 Comments
I need to exclude a folder (name uploads) from tracking. I tried to run git rm -r --cached wordpress/wp-content/uploads and after that I added the path to .gitignore /wordpress/wp-content/uploads...
  • April 30, 2022
  • 0 Comments