简体   繁体   中英

setting up Git on a Windows server

I have a mac (runs OS X Lion), when I create XCode projects, there is an option to create a local git repository on the same machine, however, after I created a test XCode project (with its local git repository), I want XCode to push/pull changes not from GitHub, but from a Windows server (located at our local network, IP address: 10.3.3.12). how can I set Git on this server ?

ps I have found many tutorials, but they sound to be outdated and hard to follow, like this one .

You can setup an Apache server with Smart HTTP configured to serve your Git repo - http://progit.org/2010/03/04/smart-http.html

Smart HTTP is what I have found to be the easiest way for setting a Windows Git server, to be used from Mac OS X.

After you setup the server, it is easier to clone the repository, and then create the xcode project in that repository. XCode will use the repository correctly if you start the project in the same folder that you cloned.

git clone username@yourlocal-repos:repo.git

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM