stop git command code example Example: stop git You can use one of the following commands to stop git. 1. rm -R .git/ 2. -rf .git/