Python Forum

Full Version: failed in initialization .gitignore
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys !
It's been a while since I just started working on some projects in Django framework and after creating projects and activate virtual environment and runserver , I don't know how to add .gitignore files to my repository .
But after creating .gitignore file in my root ,
I tried :
git add . && git commit -m 'Initial commit'
and I face this error
warning: LF will be replaced by CRLF in .idea/workspace.xml.
The file will have its original line endings in your working directory
error: pathspec 'commit'' did not match any file(s) known to git
So , I don't know actually what to do because my website projects and codes doesn't run .
I'm really happy If you could help me fixing this issue .
Thanks
try issuing commands on two lines like:
git add .
git commit -m 'Initial commit'
Try double quotes.
git add . && git commit -m "Initial commit"