Git - Errors and problems | Drupal 8

Git - Errors and problems

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

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

Tags

Add new comment