Skip to content

Instantly share code, notes, and snippets.

@OstenTV
OstenTV / git-ignore.sh
Created August 3, 2024 15:48 — forked from jeffjohnson9046/git-ignore.sh
Remove unwanted files from a git repo AFTER adding a .gitignore. The files will remain on disk.
## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot).
## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands
## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files
# See the unwanted files:
git ls-files -ci --exclude-standard
# Remove the unwanted files:
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
@OstenTV
OstenTV / desktop-dark.css
Created February 24, 2018 13:15 — forked from 1j01/README.md
GitHub Desktop 1.0 dark theme stylesheet
/**
* All of the CSS variables are copied in from the built ui.css but many are unchanged.
* Variables that categorically shouldn't be overridden are commented out.
*/
:root {
/* these should probably stay the same
--color-new: #28a745;
--color-deleted: #d73a49;