Python Forum
failed in initialization .gitignore
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
failed in initialization .gitignore
#1
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
Reply
#2
try issuing commands on two lines like:
git add .
git commit -m 'Initial commit'
Reply
#3
Try double quotes.
git add . && git commit -m "Initial commit"
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020