GIT setup: basic configuration


After installing Git client it's ready to use right away. However there are few things you may want to consider setting up. Those are things like for example user name and e-mail address.

You can display current config values with the following command:
$ git config --list

Important Note
When setting configuration parameters you can set it either as global or local value. By default you are setting the local value. By using --global param it will be set-up globally which means it will be used for all of your projects unless overridden by a local setting.

Setting user name
$ git config --global "xuser"
$ git config "xuser"

Setting e-mail

$ git config --global
$ git config

That's it.

Android: simulate incoming call


There are at least 2 ways of making incoming calls to your test device (either real device or emulator).

Solution A: Make the call from within Eclipse DDMS UI

Solution B: Make the call using command line

1. List the available devices:

$ adb devices

List of devices attached
localhost:5554    device

2. Telnet to the device:
$ telnet localhost 5554

3. Make the incoming call:
> gsm call <specify_number>


Android Emulator: How to run APK file?

If you want to install and run APK on the emulator device follow the steps below.

You will be using adb script which should be located in android-sdks/platform-tools/

1. List the available devices:
$ ./adb devices

2. Install the APK file:
$ ./abd install example_app.apk


Git Error: Permission denied (publickey)


The other day I was trying to fetch the changes from the remote repo and the following error has been displayed:

$ git fetch origin

Agent admitted failure to sign using the key.
# Permission denied (publickey).

In this case the reason was that I've changed / switched between two different ssh keys. However if you got similar issues the problem has been fixed by telling ssh to use the key by running the following command:

$ ssh-add

That's it - problem solved :)