Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Git Not Updating and Commit Issues

I am new to git and have been having some trouble with committing from Visual Studio. Just recently, Visual Studio started to not update my changes. Then when I tried to commit it gave me multiple errors. The changes disappeared though. The errors from the output.

  1. Git: Failed to execute git

  2. git fetch fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched.

  3. fatal: no upstream configured for branch 'master'

This just started happening after many commits. I looked all over the forums but have had no success. Everything in the git config --list is set accordingly. It is a private repository though. Would that effect anything?

like image 276
GoofBall101 Avatar asked Nov 23 '25 16:11

GoofBall101


1 Answers

first of all,

set your remote repository using,

git remote add upstream repsitory_url

it will solve your 2 and 3 error. it seems you dont have any remote repository to push thats why. so copy your repo name and add it into your project using above command.

for eg:

git remove add upstream github.io/my_prj/proj.git
like image 132
Mohideen bin Mohammed Avatar answered Nov 25 '25 10:11

Mohideen bin Mohammed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!