![](https://sh.itjust.works/pictrs/image/04c18132-8086-4bbb-8409-5f05b72d881d.jpeg)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
honestly I don’t think there is a better way, like others have said you can use a trash program or you can chmod the git directory before deleting but, I would recommend against the comments saying alias the command, that can lead to even bigger problems if you typo thr alias or mess up in the script. rf can’t break anything unless you say the wrong directory which would be the same with aliases anyway,
My recommendation out of them all would be using a trash program to move it to the trash that way if you do screw up the location you have a way to restore it otherwise you could make a script to list the files affected using ls and then prompt a yes/no prompt using read before doing the rm script, but that’s something you definitely want to test in a sandbox or user restricted environment if you’re not used to scripting in case something breaks
To add information on that the other person didn’t, YouTube was purchased by alphabet in 2006, it was purchased in a very unstable state, it was bleeding money, but they wanted it because they saw potential in the platform for Data Tracking and video analytics along with the fact that it had a very high traffic ratio.
When they purchased it one of the first things they started working on was trying to turn it to be green instead of red, but despite this they still didn’t start seeing any real decent change until about 2009, and it wasn’t until 2015 that the platform itself started running in the green.
All this happened with YouTube being one of the most popular video platform sites out there. YouTube doesn’t have to do anything to actively block competitors from doing it, with their established market dominance, search engine self promotion tendancies(there was an ongoing lawsuit in Australia regarding this) and the amount of sheer money they have, no company is going to try to compete, the closest arguably is likely twitch but they are pushing the reverse direction with streaming instead of video hosting