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
(function findDuplicateIds(){ | |
var ids = {}; | |
var all = document.all || document.getElementsByTagName("*"); | |
for(var i=0, l=all.length; i<l; i++){ | |
var id = all[i].id; | |
if(id){ | |
if(ids[id]){ | |
console.log("Duplicate id: #" + id); | |
} else { | |
ids[id] = 1; |
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
These two commands will minimise the diskspace used for the repo. Please note that Github, BitBucket run this all the time to minimise the diskspace. | |
Suggestion: Run as often as you can (i.e. once a week for small working-in-progress repo, one in every few days if many people work together). | |
It's no harm to run it often, cron or system task could be an option too. | |
# Clean unused commits | |
`git reflog expire --all --expire=now` | |
# Compact the disk by remove unneccesary files from the local git repository | |
`git gc --aggressive --prune=now` |
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
REGEX = [^\x00-\x7F] |