Reputation: 4052
I have added a file from the filesystem to XCode project. Now when I push the project to my github repository, this file doesn't seem to be uploaded.
What am I missing ?
Upvotes: 0
Views: 257
Reputation: 4052
When dragging files into an XCode project, you have to check: [X] Copy items into destination group's folder (if needed)
otherwise, files are just referenced in the project settings, but not actually copied inside the project folder.
Upvotes: 1
Reputation: 1
Assuming your added file is mynewsource.cc
, did you run the
git add mynewsource.cc
command (to add the file into GIT repository), then the
git commit -a
command (to commit the addition and other changes; this probably would fire some $EDITOR
to have you edit some commit message), and finally
git push
to push (i.e. forward) the changes to the upstream git server?
I strongly suggest to look at git documentation; it has very well written tutorials and short videos
Adding a file to some IDE's (e.g. Xcode) project is unrelated (and should be unrelated) to version control (like git
or svn
). Perhaps your IDE should have some way (menu entries....?) to add a new file to version control (GNU emacs
VC mode has one).
Upvotes: 0