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.
Git: Failed to execute git
git fetch fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched.
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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With