.xcworkspace not showing in git repository - xcode

I have a project which has some of the pods installed.
I can see the .xcworkspace folder in my local workspace.
But it is not present in the remote git repository.
And I am not able to add it to git by git add .xcworkspace/*.
How can I add it to the local repository and then push it to remote?

After cloning from git and after pod install the .xcworkspace will automatically come.You don't have to worry about. try...

Related

Failing pulling existing Repo in Visual Studio

I downloaded a branch as zip file from git succesfully. After this I cloned repo from in the section below. But still I cant see all the branches that I wanna see. What's the problem here?
ss
try using,
git clone {repo-URL}
In this way the cloned directory will be a git repository with all the git history and branches...

How to create to create a symlink of a git repo on windows??

Is it possible to create a symlink of git repo on windows so that i don't have to clone a repo.
means without cloning a repo can i just edit a foriegn repo
(friends repo) from my windows computer using symlink.
Actually i don't know such procedure, if any one can tell me how to do it properly.
Open git bash and write this command:
git worktree add /<path>/<name>
for example:
git worktree add /tmp/link2
# find out where is the folder:
mount
The 3rd line will show you the path on the disk
Now you will have second folder with reference to the original repository.

Cannot add repository account in Xcode

I don't know why I cannot add a repository account in Xcode.
Product -- Version
Xcode -- 7.3.1
git -- 2.8.1
OSX -- 10.11.5
screenshot from xcode/preferences/accounts
I found the issue. Under preverences / source control, "enable source control" was not checked. Once checked, I was able to add my GitHub remote repository.
You can connect your project to your repository with git bash like this:
$ cd /your/project/path/
$ git init
$ git remote add origin git#github.com:ali/first_app.git # Or other repo URLs
$ git push -u origin --all # pushes up the repo and it's refs for the first time
$ git push origin --tags # pushes up any tags
Hope be useful.

ReadMe file won't allow me to commit and push xcode changes to github

I have an existing xcode project and repo on Github. I recently added a ReadMe file which was suggested by Github but now I can no longer commit and push changes to Github. I keep getting an out of date message. How do I fix this problem?
I had the same experience of adding README.md with the same error.
If you don't want to git pull, because the remote version in Github is outdated.
You can also force push all local branches using:
$ git push -f origin master
The following commands in the Terminal will push your local Xcode project to remote Github.
cd <drag location folder of project>
git init
git push -f origin master
You need to git pull.
If you're using the command line, navigate to the directory of the repository and run git pull. If you're using another interface, the steps may be a bit different.

Xcode Source Control Git

When you create a new xcode project, there is a checkbox, which you can check if you want to use a git repository on your mac. I did not check that box, so right now I don't have access to source control resources. How can I start using git with my project?
I think you would just need to setup a local git repository.
Open terminal on your Mac and type the following commands:
cd <DirectoryYourCodeIsIn>
git init
git add .
git commit -m 'initial commit'
Also, restart XCode after this is completed.

Resources