logoalt Hacker News

chrisweeklyyesterday at 8:02 PM1 replyview on HN

how do you commit a file without first adding it?


Replies

JonathonWyesterday at 8:06 PM

`git add -f` will add ignored files. Once you've done that, any files you've added will be part of your commit regardless of the contents of .gitignore.

show 1 reply