Mindblown: a blog about philosophy.
-
Git isn’t noticing the changes you made to your .gitignore file
If it seems like Git isn’t noticing the changes you made to your .gitignore file, you might want to check the following points: There might be a global .gitignore file that might interfere with your local one When you add something into a .gitignore file, try this: git add [uncommitted changes you want to keep] && git commitgit rm…
-
Remove Array Duplicates in ES6
https://www.samanthaming.com/tidbits/43-3-ways-to-remove-array-duplicates/
-
Remove duplicates from an array of objects in JavaScript
Nice and clean if you only want to remove objects with a single duplicate value, not so clean for fully duplicated objects. export const uniqueArray = arr => { return Object.values( arr.reduce((acc, cur) => Object.assign(acc, { [cur.id]: cur }), {}), );}; https://stackoverflow.com/questions/2218999/remove-duplicates-from-an-array-of-objects-in-javascript
-
How to remove a big file wrongly committed
I added a large file to a git repository (102Mb), commited and push and got an error due to size limit limitations on github remote: error: GH001: Large files detected. You may want to try Git Large File Storage – https://git-lfs.github.com. remote: error: Trace: 7d51855d4f834a90c5a5a526e93d2668 remote: error: See http://git.io/iEPt8g for more information. remote: error: File…
Got any book recommendations?