Fraser
Fraser

Reputation: 1010

Git http-push is not a git-command

Very new to git and just setting up based on tutorial instructions:

git init
git add --all
git commit -m "Initial Commit"
git remote add origin http://user@server/trunk.git

Which all go through fine

However, when I run:

git push origin master

I get the following error:

git: 'http-push' is not a git-command. See 'git --help'.

I'm running git version 1.6.0.2 in opensuse

Thanks in advance

Upvotes: 1

Views: 4889

Answers (1)

Andrew
Andrew

Reputation: 2468

git help http-push (on Git 2.1.2) tells me:

NOTE: This command is temporarily disabled if your libcurl is older than 7.16, as the combination has been reported not to work and sometimes corrupts repository.

A few things I'd try:

  • Use HTTPS or SSH instead of HTTP
  • Find out your libcurl version and update it if necessary
  • Update Git if git help http-push doesn't work either

1.6.0.2 is six years old by the way, so I'd consider upgrading it regardless.

Upvotes: 2

Related Questions