S
S
sulla2011-12-08 11:48:08
git
sulla, 2011-12-08 11:48:08

GIT - '~/repo.git/' is not a git command

Problem when pushing from local repository to remote (SmartGit GUI).

On the server, I create a repository via ssh: I clean via SmartGit Everything is pulled out without any problems. I change the readme file, add, commit and push throws out an error: Command: Issues: What am I doing wrong? Where to dig?

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


ssh://[email protected]:22/~/repo.git

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


GIT_TRACE=2 git push origin master

image

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sulla, 2011-12-08
@sulla

TOTAL:
Step 1: In the local git settings we do: Step 2: Create repositories on the server with the --bare parameter: And everything plows.
git config --global remote.origin.receivepack "git receive-pack"

git init --bare

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question