You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of times when I'm just creating a project, I want to add a few files and directories to the .gitignore, before setting up git.
The behavior before was to just run git ignore node_modules and it would create a .gitignore file, not it's errors out with Not a git repo!. I understand why this is here, but it forces you to manually create the file and add these files before committing.
The text was updated successfully, but these errors were encountered:
Well, we can change the behaviour.
Instead of exiting, we can just warn the user that they are outside of a git repo.(Or there should be a git repo, in your case).
What about your opinion? @hemanth
A lot of times when I'm just creating a project, I want to add a few files and directories to the
.gitignore
, before setting up git.The behavior before was to just run
git ignore node_modules
and it would create a.gitignore
file, not it's errors out withNot a git repo!
. I understand why this is here, but it forces you to manually create the file and add these files before committing.The text was updated successfully, but these errors were encountered: