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
Add / Change Remote url from terminal / CLI
git remote set-url origin [SCHEME]://[USER]@[HOST_NAME]:[PORT]/[PATH].git
Example:git remote set-url origin ssh://git@gitlab.company.com:10022/web/drupal.git
Add new comment