you shouldn’t be using git in a way where it would affect your workflow

@aescling What?? :psyduck:

Then how am I supposed to tell Git to ignore my Vim .swp files?

Follow

@vaporeon_ dump git add -A and the like and learn the magic of git add -p

@aescling I just use regular git add most of the time

But what's the point, what would it get me not to use the feature that specifically is there to prevent files from being added to the git repository to prevent files that I don't want to be added to the git repository from being added to the git repository?

@vaporeon_ to make a habit of adding files, and even more pawerfully, specific changes deliberately

@vaporeon_ the latter is what git add -p (that is, --patch) is designed to make pawsible to do

@aescling I probably should look into git add -p at some point, if I ever care about having a proper commit history where each commit is a particular change or set of changes...

@aescling It sure is easier to add files deliberately when git status doesn't show me a lot of files that I don't care about, such as compiled binaries and Vim .swp files. And that's why I add those to .gitignore, so that git status only shows the status that I actually care about!

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.