By editor, 24 July, 2017 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 Tags Git Error Helpful git commands Make Correction on a git Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments