Clone Git repository into iPhone - ios

I want to develop an iOS application that executes the git clone command to basically get a repository on the phone. After that the only command is git fetch so I will periodically update the files. After those 2 commands nothing more is required. just local parsing on the files.
My question is can I do that on iOS? I had a similar application working on ubuntu, and it was quite easy to do using 'git .....' commands

you cant launch other apps / processes on ios so you cant call the git executable.
BUT there is libgit2 - a c static lib you can use in your ios app to work with git: see http://libgit2.github.com
there is a objC wrapper that makes it a breeze to use: see https://github.com/libgit2/objective-git

You can use Git on iOS via the iSH app.
That is, you can install the app, install Git using apk add git, and then you are good to go.
This might not be directly useful to you, but I'm writing this here because this was the first hit on Google when I searched for "how to git push/git pull on iPhone"

Related

use Google spreadsheet connector wso2

I would like to use the google spreadsheet connector at https://github.com/wso2/esb-connectors/tree/048e223c037b447c3f77c2b7e72338dc26ea5c46/googlespreadsheet. But it is not found in wso2 store. I would like to know how I can compile it and use the connector from github. Please help
Generally git wont allow you to get a folder. so you need to go with svn approach. follow bellow instruction as it is. (assumtion on you are woking in linux / mac enviorment. if not make the command the way works on windows.
create new directory where ever you want and navigate inside that
wget https://raw.githubusercontent.com/wso2/esb-connectors/048e223c037b447c3f77c2b7e72338dc26ea5c46/pom.xml
mkdir wso2
cd wso2
mkdir esbconnector
cd esbconnector/
mkdir googlespreadhseet
cd googlespreadhseet/
svn checkout https://github.com/wso2/esb-connectors/trunk/googlespreadsheet/googlespreadsheet-connector/googlespreadsheet-connector-2.0.0/org.wso2.carbon.connector
cd org.wso2.carbon.connector/
mvn clean install
it may take little time as its required to download few artifacts. if its ended up with error that integration test not found get the integration test Base from the same repo and build that first. then rebuild the connector
Recently Google spreadsheet Version2 connector has been created with REST API and added to WSO2 store. The Connector zip file can be downloaded from here. Go to the link and click the 'download connector' button and follow the documentation for the configuration.
You can checkout the connector source from the https://github.com/wso2/esb-connectors/blob/master/googlespreadsheet and built it.
Then add the connector to the ESB from the UI according to the https://docs.wso2.com/display/ESB481/Managing+Connectors+in+Your+ESB+Instance

third-party 'MBProgressHUD/MBProgressHUD.h' file not found

I'm new at iOS development, and I want to run this project https://github.com/google/uribeacon/tree/master/ios-uribeacon
that I thought it should work out of the box.
I've tried to build and run uribeacon-sample, but I can't because I got this error 'MBProgressHUD/MBProgressHUD.h' file not found
I 've seen that there this this project https://github.com/jdg/MBProgressHUD, but I don't know how to include it
when you clone your git, need to get submodules;
git clone --recursive git://github.com/foo/bar.git
You can also follow the MBProgressHUD instructions and use CocoaPods, It's very simple to use and you can use it to add, not only this one but, multiple open source projects to your own code.

Preparing an Installation and Installing on client machine

As I have done my first project on Ruby on Rails.
I want to know what should I do to prepare installation from my machine the code i generated in a project and other thing is that what should I do to install that all on client machine the I prepare from my machine.
You should probably put your code in a repository - probably git via GitHub is best. If the setup is going to be different then perhaps gitignore the database.yml but include a .sample of it. Then to install on someone's machine just checkout the repo bundle install and run the relevant rake tasks (db:setup probably).
Updates can then be applied by pulling from the repo.
Other than that zip it up and unzip on there machine making sure to install everything required.

Can't push to git hub

I just completed Chapter One of the Ruby on Rails Tutorial by Hartl. Posted about one minor hitch previously. Now I started Chapter Two. I swear I did everything by the book, but now when I try:
git push -u origin master
I get the following messages after entering my passphrase:
ERROR: repository not found
fatal: could not read from remote repository
Please make sure you have the correct access rights and that the repository exists.
When I down loaded heroku tools I think it installed a second version of Ruby on my machine. In any case I now have two version listed under All Programs. Could this have screwed thing up? The two versions are Ruby 1.9.2-p290 and 1.9.3-p327. Also when I open the command prompt using 1.9.2 there is a weird thing at the top before I do anything:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
This is then followed by the normal prompt on the next line. I'm wondering if the use of my public keys have some how gotten screwed up.
Any help would be appreciated.
You should add a new git remote.
check https://help.github.com/articles/adding-a-remote
So i had problems with windows and multiple versions of ruby too. I would recommend deinstalling all versions and only installing one ruby version. But thats not related to your Github problem i guess.
Switch via the commandline to your app folder and checkout:
git remote -v
it shows you what is the remote location for you app. And 5 bucks that its screwd up. You can remove the path by:
git remote rm origin
or if its only on heroku:
git remote rm heroku
and after that add the correct remote path again. Example:
git remote add origin git#github.com:foo/bar.git
That hopefuly fix it.
And keep in mind if you want to push to heroku use:
git push heroku master

Start rails app from git

What do I need to do if I want to use https://github.com/holden/devise-omniauth-example as my starting point for my app?
I'm developing on OSx and I'm a noob. I'd like to start with a pre-built auth system and go from there. New to git too--I think I want to pull from git? or start a new rails app as a template?
To use that. You need to install git. Check out homebrew to install git, makes life easier.
Next do
git clone https://github.com/holden/devise-omniauth-example.git
cd devise-omniauth-example
and you are good to go after changing some configs, mostly db.
I would recommend starting from scratch and reading about devise. It may take a bit longer, but will make life easier in the long run.
In command line:
git clone git://github.com/holden/devise-omniauth-example.git
This will download the whole app you'll be able to use after configuring your database and having bundled the gemfile.

Resources