just .gitignore me and my file-exclusionism... 

Okay, what the heck am I doing wrong?

I've tried:

local/*
/local/
**/local
**/local/*

(3rd one is almost exactly an example from the official docs)

...and yet the folder named "local" is still being included in the commit.

Is this messed up or is it just my brain overlooking something blindingly obvious (yet again)...

just .gitignore me and my file-exclusionism... 

@woozle note that gitignore can be overridden, so if something is included already you have to remove it before gitignore can take effect

Follow

re: just .gitignore me and my file-exclusionism... 

@clarfonthey Ahh, that may be it.

· · Web · 1 · 0 · 1

re: just .gitignore me and my file-exclusionism... 

@clarfonthey Any idea how I do that? git rm apparently also removes the items from the disk, which I do not want...

I guess I could hide the items elsewhere, do git rm, and then move the items back -- but that seems unnecessarily janky...

re: just .gitignore me and my file-exclusionism... 

@woozle git rm --cached should be what you want -- it removes from git but not from the working directory

re: just .gitignore me and my file-exclusionism... 

@clarfonthey That seems to have been the ticket -- t.y. ^.^

I couldn't get @jond 's git reset suggestion to work.

Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!