Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Git - Errors and problems

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

Plain text

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

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer