So after initial git commit etc, I have happily created a new xcode and tried to upload. Terminal says, sorry cant upload some items. So I Googled and found that you got to put .gitignore for iphone / xcode things.
But the problem is, I dont know where to add the ignore file. And to make it worse, I have NO IDEA how to create it. After many many search I found, to create - I got to use
And vola, now I can create a gitignore file. So I added those and saved it and then I tried to git it and there you go, a new error popped up.
fatal : cannot use /users/avi/ as an exclude file
I searched high and low what might have caused it. Tried all sorts of command only to find more and more errors. Here are a few :
1. fatal: bad revision 'HEAD'
After many many tries, I finally found the solution
This will bring you to the main config file which has these
your user details
Once I deleted those lines, I could commit and upload it right away.