Skip to content

Instantly share code, notes, and snippets.

@gokaygurcan
Created March 26, 2019 10:58
Show Gist options
  • Save gokaygurcan/92d3bc382cf3b37109ef6f33eb81e086 to your computer and use it in GitHub Desktop.
Save gokaygurcan/92d3bc382cf3b37109ef6f33eb81e086 to your computer and use it in GitHub Desktop.
reflog
git rm -r -f --cached $PATH
echo $PATH >> .gitignore
git add .gitignore
git commit --amend --no-edit
git reflog expire --expire=now --all --verbose
git gc --prune=now --aggressive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment