I am still in transition from Github to Codeberg, so I got some repositories still residing on Github, while others are on Codeberg already.
Now I created a new local repository for a project, developed for a while and now wanted to push it to Codeberg to create a new repo there - and miserably am failing at it.
What I did so far:
- did a
git init
- added all files belonging to the repo
- made a
git commit
But now when trying to push the project to Codeberg I am running into numerous issues.
git config --list gives me
credential.provider=generic
credential.helper=cache
credential.https://github.com.helper=!/usr/bin/gh auth git-credential
user.email=_my_mail_address_
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=main
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://Miq19@codeberg.org/Miq19/Bridge
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
When I will do a git push -u origin master (was master by default, sorry) the system will hang forever until I Ctrl-C it.
I suppose the culprit is the credential.helper or credential.https, but what will I have to set to be able to sync to both Github and Codeberg?
Oh, by the way: I am using 2FA with an authenticator app to authenticate on Codeberg and Github.
### Comment
I am still in transition from Github to Codeberg, so I got some repositories still residing on Github, while others are on Codeberg already.
Now I created a new local repository for a project, developed for a while and now wanted to push it to Codeberg to create a new repo there - and miserably am failing at it.
What I did so far:
- did a ``git init``
- added all files belonging to the repo
- made a ``git commit``
But now when trying to push the project to Codeberg I am running into numerous issues.
``git config --list`` gives me
```
credential.provider=generic
credential.helper=cache
credential.https://github.com.helper=!/usr/bin/gh auth git-credential
user.email=_my_mail_address_
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=main
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://Miq19@codeberg.org/Miq19/Bridge
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
```
When I will do a ``git push -u origin master`` (was ``master`` by default, sorry) the system will hang forever until I ``Ctrl-C`` it.
I suppose the culprit is the ``credential.helper`` or ``credential.https``, but what will I have to set to be able to sync to both Github and Codeberg?
Oh, by the way: I am using 2FA with an authenticator app to authenticate on Codeberg and Github.