Git - Errors and problems | Drupal 8

Git - Errors and problems

Submitted by editor on Mon, 07/24/2017 - 09:46

Some Errors and problems of git repository.

Cannot push Git to remote repository with http/https

return code 22 fatal: git-http-push failed

Edit the file config (.git/config)
Change :
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = http://git.repository.url/myrepository.git
# TO
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = http://username@git.repository.url/myrepository.git
#OR (Not recomended)
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = http://username:password@git.repository.url/myrepository.git

Then try again # git push origin  master

Add / Change Remote url from terminal / CLI

git remote set-url origin [SCHEME]://[USER]@[HOST_NAME]:[PORT]/[PATH].git
git remote set-url origin ssh://



Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.