Jump to content

[C#] Problem while pushing a Commit to a Remote Repository

Go to solution Solved by Kilrah,

Sounds like something's broken regarding authentication/credential management on your machine.

Did you try pushing from command line?

Hey all together,

So I have this weird Error going on inside my Visual Studio right now.

 

Me and my coworkers decided to set up a onPrem Gitea for our company where we push our source code onto for better source control.

This worked totally fine but then at some random point in time, my VS crashed and ever since them in not able to push my locally created commit-branch to the remote repository. The project template is an Blazor Server App running with ASP.NET Core 6. This problem only occured on my Notebook / in my VS, every other installation we have running on the machines of my coworkers are fine and still able to push and fetch to and from our remote repo.

 

The errormessage my Output prompt of VS is giving me says the following:

Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
cannot spawn askpass: No such file or directory
could not read Username for 'http://IP.Adress.Of.Our.Server': terminal prompts disabled

Failed to push the branch to the remote repository. See the Output window for more details.

 

Im running the following os/versions:

Windows 11

Visual Studio 2022 (v17.1.1)

Gitea-Version: 1.15.6

 

I'd be super happy if someone can help me with that. If you need addtional information, please let me know.

 

Cheers Nightcore

 

Link to comment
Share on other sites

Link to post
Share on other sites

Sounds like something's broken regarding authentication/credential management on your machine.

Did you try pushing from command line?

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to comment
Share on other sites

Link to post
Share on other sites

16 minutes ago, Kilrah said:

Sounds like something's broken regarding authentication/credential management on your machine.

Did you try pushing from command line?

I've tried that but my cmd returns, that the command "git" could not be found. Same result if I try it inside PowerShell or even inside the integrated Developer PowerShell of VS

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, NightcoreCEO said:

I've tried that but my cmd returns, that the command "git" could not be found. Same result if I try it inside PowerShell or even inside the integrated Developer PowerShell of VS

add git to path

ಠ_ಠ

Link to comment
Share on other sites

Link to post
Share on other sites

On 3/22/2022 at 10:55 AM, Kilrah said:

Sounds like something's broken regarding authentication/credential management on your machine.

Did you try pushing from command line?

 

On 3/22/2022 at 11:29 AM, shadow_ray said:

add git to path

Sorry for not responding. I will try that in a second!

Thank you in advance.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×