Created
November 11, 2013 15:53
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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