I have a problem with with remote git repo and local repo (using SmartGit).

I'm creating remote repo on my server via ssh:

```
> cd ~
> git init repo.git
> cd repo.git
> touch readme
> git add .
> git commit -m "Initial commit"

```

From here everything seems perfect. Now I'm trying to clone repo using Smartgit with command

```
ssh://user@server:22/~/repo.git

```

Everything is cloning well. I make changes in readme file, saving it and trying to commit and push and getting error:

```
The remote end hang up unexpectedly
git: '~/repo.git' is not a git command. See 'git --help'

```

What am I doing wrong?
Thank you.