New answers tagged

1 vote
Accepted

Use Git Version of mv/rm etc When in Repository

I suggest you have some myrm / mymv script that git rev-parse in order to detect if you are inside the repo and act accordingly. Something like : ingitr="$(git rev-parse --is-inside-work-tree 2&...
user avatar
  • 3,416
3 votes

Use Git Version of mv/rm etc When in Repository

git mv does a different thing from normal mv and is very much not a drop-in replacement. For instance, it doesn't act on untracked files: touch foo git mv foo bar prints fatal: not under version ...
user avatar
  • 918

Top 50 recent answers are included