What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-04 21:11:03
how to remove sensitive data from github history
git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" \ --prune-empty --tag-name-filter cat -- --all git push --force --verbose --dry-run git push --force Add solution -
Shell/Bash 2021-08-27 07:38:01
how to delete a commit in git remotely
If you want to delete for example the last 3 commits, run the following command to remove the changes from the file system (working tree) and commit history (index) on your local branch: git reset --hard HEAD~3 Then run the following command (on your loc... Add solution
Best helpers
Ranking is empty