Skip to content

Instantly share code, notes, and snippets.

@asilbalaban
Created November 11, 2013 15:53
Show Gist options
  • Save asilbalaban/7415412 to your computer and use it in GitHub Desktop.
Save asilbalaban/7415412 to your computer and use it in GitHub Desktop.
Artık projede yer almayan tüm dosyaları geçmişe dönük olarak git history'den kaldırır. Projede yer almayan dosyalara geri dönme ihtimaliniz söz konusu değilse temizlik için kullanın
git log --pretty=format: --name-status | grep -i ^D | cut -f2- | sort -u | xargs -I {} git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch {}' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment