Skip to content

Instantly share code, notes, and snippets.

@Lovor01
Last active October 3, 2023 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lovor01/6492e17181fd5bc617488eced3a23a98 to your computer and use it in GitHub Desktop.
Save Lovor01/6492e17181fd5bc617488eced3a23a98 to your computer and use it in GitHub Desktop.
Remove file/directory from remote repository

Remove remote file or directory

// file
git rm package-lock.json --cached
// directory
git rm -r directory --cached

then commit changes

Remove remote repository

git push origin -d with-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment