title: Maven fails to git-push build release to repository
body: <p>On an Android project named <code>foobar</code> I run <a href="http://maven.apache.org/maven-release/maven-release-plugin/usage.html" rel="nofollow noreferrer"><code>mvn release:prepare</code></a> which successfully builds the application and adds a  local commit to the Git repository. Then when the script tries to push to the remote repository the following error occurs:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:\
          maven-release-plugin:2.4.1:prepare (default-cli) on project foobar: \
          Unable to commit files
  [ERROR] Provider message:
  [ERROR] The git-push command failed.
  [ERROR] Command output:
  [ERROR] fatal: unable to connect to :
  [ERROR] : Name or service not known
  </code></pre>
  
  <p>I use public/private keys to access a local server named <code>mylocalserver</code>:</p>
  
  <pre><code># ~/.ssh/config
  Host mylocalserver-git
      HostName 192.168.100.100
      User git
      IdentityFile ~/.ssh/id_rsa
  </code></pre>
  
  <p>The Git configuration refers to the hostname and points to the repository:</p>
  
  <pre><code># Git config
  remote.mylocalserver.url=git@mylocalserver-git:foobar.git
  </code></pre>
  
  <p>Maven also knows about the server:</p>
  
  <pre><code>&lt;!-- pom.xml --&gt;
  &lt;scm&gt;
      &lt;developerConnection&gt;
          scm:git:git://mylocalserver-git:foobar.git
      &lt;/developerConnection&gt;
  &lt;/scm&gt;
  </code></pre>
  
  <p>The directory structure of the project is as follows:</p>
  
  <pre class="lang-none prettyprint-override"><code>├── .git
  ├── .settings
  ├── assets
  ├── bin
  ├── docs
  ├── gen
  ├── gen-external-apklibs
  ├── libs
  ├── out
  ├── res
  ├── src
  ├── target
  ├── tmp
  ├── .classpath
  ├── .gitignore
  ├── .project
  ├── AndroidManifest.xml
  ├── ic_launcher-web.png
  ├── pom.xml
  ├── proguard.cfg
  ├── project.properties
  ├── README
  </code></pre>
  
  <p>I can use the remote server with any Git command such as <code>git push mylocalserver master</code>. Why is Maven failing though?<br>
  I can suppress the error when I <a href="https://stackoverflow.com/a/11749285/356895">prohibit maven to <code>push</code> the release</a>:</p>