Git pull override local changes

To set you code to the latest branch code and override you local changes  or if you see message like “Your local changes to the following files would be overwritten by merge” on pull

do following:

git fetch --all
git reset --hard origin/YourBranchName


Android Phonegap The connection to the server was unsuccessful

If you see this error go to your app directory/platforms/android/CordovaLib/src/org/apache/cordova


And find this message there.  A little bit above you should see

final int loadUrlTimeoutValue = Integer.parseInt(this.getProperty("LoadUrlTimeoutValue", "20000"));

Change 20000 to 70000 for example.


Just enter username and password and an entry for a htpasswd file is generated. You can use the htaccces Authentication generator to create a htaccess file that will password protect your site or a directory. This htpasswd generator creates passwords that are hashed using the MD5 algorithm, which means that you can use it for sites hosted on any platform, including Windows and Linux. You can also create htpasswd passwords with PHP on your own server – this technique only works on Linux though. Read more about htpasswd files.