Pushing over SSH to a GIT repository with Xcode 4.6 -


i using xcode 4.6 develop projects , using local repository feature. able push repository remote ssh server.

i have tried following did not work : went organizer , repository, have added new remote following instructions : - name : name have put project name - location : have put ssh path : user@domain:path_to_my_.git_folder

then have entered ssh password, there no confirmation button though.

once done returned development window , went file->source control->push says there no remote found.

so know should make work.

thank you.

i have found best solution repo's on github , bitbucket create ssh key-pair no password.

$ cd .ssh $ ssh-keygen -t rsa -b 2048 -f github_id_rsa $ vi config 

then add following:

host github     hostname github.com     user git     identityfile ~/.ssh/github_id_rsa 

and refer repo as:

ssh://github/trojanfoe/myrepo       ^^^^^^ (note that's name of "host" config file, not github.com) 

this works in xcode, see "green lights" next repo during pull, "red lights" next repo during push (this might bug in xcode 5.1 beta), works without complaint , without need password, great if use jenkins release builds.

the repositories under preferences > accounts cannot connect using ssh alias either, strangely function fine when performing source control operations:

enter image description here


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -