LoginSignup
0
0

More than 5 years have passed since last update.

First remote version of Git source repository on Xcode

Last updated at Posted at 2016-03-15

Leading

Sometimes we need to manage the code by using Git. In our company we store the Git source repository on the server.

It's my business to manage that source. But when I try to create a new one by Xcode, I get problems.

Xcode can only create loal copy

Xcode can just create a local repository, and download the existing source from server.
Screen Shot 2016-03-09 at 16.43.49.png

After creating...
Screen Shot 2016-03-09 at 16.44.20.png

So we must find another way to create the one on server.

Create *.git on server

First of all, upload the original source to server.
Screen Shot 2016-03-09 at 17.05.46.png

Go into the project folder and create the hidden folder .git.
Screen Shot 2016-03-09 at 17.07.03.png

Then type below commands in project folder for preparing the first version.
git add .
git commit -m "initial version"

At last go to the father folder of project folder and create the *.git folder.
Screen Shot 2016-03-09 at 17.15.50.png

You will find the *.git folder. And that is what we need!
Screen Shot 2016-03-09 at 17.16.10.png

Check out the Git source repository from server

This time go to Source Control -> Check Out..., and input the link where the Git source repository is.
Screen Shot 2016-03-09 at 17.57.08.png

The link format is
ssh://username@servername/absolute_directory_of_git_source_repository

Further more

You can go to setting up a repository to know more about set up a repository.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0