How to fix bower ECMDERR

In case you might encounter the same issue…It turns out my machine behind firewall, that won’t able to access git://github.com/jquery/jquery.git Link: Unable to Connect to GitHub.com For Cloning The solution without changing the firewall: git config –global url.”https://”.insteadOf git:// Credit to @bnguyen82 from Unable to Connect to GitHub.com For Cloning and @Sindre Sorhus from Bower … Read more

How to pull remote branch from somebody else’s repo

git remote add coworker git://path/to/coworkers/repo.git git fetch coworker git checkout –track coworker/foo This will setup a local branch foo, tracking the remote branch coworker/foo. So when your co-worker has made some changes, you can easily pull them: git checkout foo git pull Response to comments: Cool 🙂 And if I’d like to make my own … Read more

git clone with HTTPS or SSH remote?

GitHub have changed their recommendation several times (example). It appears that they currently recommend HTTPS because it is the easiest to set up on the widest range of networks and platforms, and by users who are new to all this. There is no inherent flaw in SSH (if there was they would disable it) — … Read more

Cocoapods with private git repository

If you use SSH and have generated a SSH Key (more info here) $>more ~/.ssh/config It should give you something like that: Host SomeHostNameAlias HostName github.com User YourUserName PreferredAuthentications publickey IdentityFile /Users/YourLocalAccount/.ssh/TheSSHKeyGenerated Then, in your Podfile, you should be able to do something similar to this (I didn’t put :branch =>, but if you need … Read more

github search limit results

The Search API will return up to 1000 results per query (including pagination), as documented here: https://developer.github.com/v3/search/#about-the-search-api However, there’s a neat trick you could use to fetch more than 1000 results when executing a repository search. You could split up your search into segments, by the date when the repositories were created. For example, you … Read more