How to exclude files from git without committing changes to gitignore?
Run into the annoying problem of git complaining about unstaged changes that you just cannot commit for whatever reason. A quick way to get around this issue is add those files/folders to .gitignore But then you need to commit that file as well. That's so painful, huh?
Alternative is to add these files to .git/info/exclude that allows to ignore files from being staged. Yay! Problem solved.
Refer here for a detailed excerpt.
No comments:
Post a Comment