Sunday, July 10, 2016

xcode 7 and git

Set up git server on Ubuntu
http://5techy.blogspot.com/2015/10/set-up-git-server-on-ubuntu.html

prepare git server for a repo

1
2
3
mkdir /opt/git/project.git
cd /opt/git/project.git
git init

put initial version in
1
2
3
4
5
6
7
touch README
git init
git add .
git commit -m "first commit"
git remote add origin ssh://git@gitServer:/opt/git/project.git
git remote -v
git push origin master

on Mac OS X
1
2
cd $project
rm -rf .git

start Xcode, open project

Source Control -> Create Working Copy

Source Control -> "project" -> Configure "Project"
remote tab, "+", "ssh://git@gitServer:/opt/git/project.git"
done

Source Control -> "project" -> New Branch, "workingBranch"

Source Control -> Push -> origin/workingBranch

Now, source code are on the git server.



No comments:

Post a Comment