Error Cloning/pushing git organizational repository in dbeaver(git integration) - github

I am getting an error when trying to clone an organization git repository in dbeaver.
I am guessing its an authentication issue or something.
Any insights appreciated.
Note:
My credentials are correct.
I am using https protocol.
I am able to clone/push using git desktop without error.
My user account has admin role to this repository.
I am able to clone/push a non organizational repository in dbeaver.
ERROR: " ... git-upload-pack not permitted on ..."
ERROR Screenshot:

Related

Fatal unable to access 'https://github.com/': The requested URL returned error: 403 - despite following all solutions?

I deleted my keychain credentials and generated a Personal Access Token on Github.
Once prompted for password in terminal, I entered my PAT (though I do not see the typed input on the screen) - I get an error every time. I went through the published solutions on Stack and nonetheless cannot push my root folders to the new repository on Github.
Is there anything else I can try or another way to upload the full folder with sub folders and file at once? I have GitHub Desktop but cannot see any changes in the history even though I cloned the repository.
My command line path:
...-MBP (project-name) % git push -u origin main
Username for 'https://github.com': (my username)
Password for 'https://(my username)#github.com':
remote: Permission to (my username)/to-do-list.git denied to (my username).
fatal: unable to access 'https://github.com/(my username)/(project-name).git/': The requested URL returned error: 403
I also got that same error.. what i did to resolve was to go back to setting, then generate another Personal Token Access Token, then below i selected the scopes, or permissions, to grant this token(this step i had skipped previously). Then clicked on Generate Token and the when i used the token again it worked.

How to connect to an organization's guthub repository using ssh key using Visual Studio 2019?

I prefer to using ssh keys and there is a lot to learn for me always!
My current challenge is:
I am using Visual Studio 2019 and I have my organization's private repositories in guthub under the organization's name.
When i try to connect to one of the repositories under the name of my organization, i am getting this error:
permission denied (publickey)
I have generated ssh keys as follows:
id_rsa_personal#gmail
id_rsa_work_alias#organization
I also have a config file in ~/.ssh/config with contents as below:
#github personal
Host personal
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_personal#gmail
#github work
Host work
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_work_alias#organization
In my visual studio 2019, under MenuBar-> Git-> Manage Remotes is setup to use ssh for fetch and push
Here is what my github dashboard looks like
As you can see, it has two entries one for my work alias and one for my organization
I mostly work on repositories under the Organization.
But while adding the ssh key contents to github, i added so under my work alias account
Now when i try to do a fetch from Visual Studio 2019, i get the error
permission denied (publickey)
Examining the Your Organizations menu option, i do not see a settings option.
So, in my case, should i be configuring visual studio 2019 to be using https:// to perform git operations? please clarify
To add to sborsky's comment, assuming everything is running with the current user (the one with ~/.ssh/config), the actual URL to use would be:
work:Organization/api-1.git
No need to repeat the user, which is already specified in ~/.ssh/config
Check first if it works with:
ssh -Tv work
You should see an error message, unless:
your account is not part of the organization
and/or you have not properly added the public key to your GitHub account.

Git collaborator cannot push

I was included as a collaborator in a college's homework. When I perform a push I get this:
remote: Permission to somename/Sistema-Estatistica.git denied to diegowebuzz.
fatal: não foi possível acessar 'https://github.com/somename/Sistema-Estatistica.git/': The requested URL returned error: 403
Clone, pull works as expected!
When I perform a push, I am asked my username and password. I am sure I provide those correctly.
Have you added him to the organization on github? If yes, check for his permissions and give him all.

Source Tree account switch

I am trying to push to a repository under user account 'starhunter1' using source tree. Since initially while installing source tree i might have used 'starhunter2' account, hence while trying to push i am receiving a permission error. How can i switch the account to that of 'starhunter1'. I tried uninstalling and re-installing source tree but it does not help and still throws the below error.
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin v1:v1
remote: Permission to starhunter1/TestJenkins.git denied to starhunter2.
fatal: unable to access 'https://github.com/starhunter1/TestJenkins.git/': The requested URL returned error: 403
Pushing to https://github.com/starhunter1/TestJenkins.git
Completed with errors, see above.
For each repository in Source Tree you have the possibility to set a specific user.
Select your repo tab, then click "Settings", then "Advanced".
There you will see a checkbox saying "Use global user parameter".
Uncheck this box and you should be able to manually define the user.

sourceTree isn't letting me push to gitHub after supposedly typing my passcode wrong once

sourceTree isn't letting me push to gitHub after supposedly typing my passcode wrong once and now when I try to push to that remote it won't let me even after I deleted that remote and added it again. Here is the error Pushing to https://github.com/user/app.git
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/user/app.git/'
Thanks for any help in advance!!!
P.S. "user" and "app" are not the real names.
It's not Sourcetree, git-push is failing due to invalid credentials. Just try to re-setup your git credentials again as explained here.