-2

my push / pull options are not highlighted after i commited my change in RSTudio, why?

screenshot

If I do git push -u origin master, I get

error: src refspec master does not match any
error: failed to push some refs to 'https:/...

My Github desktop shows this btw - github desktop screenshot

torek
  • 448,244
  • 59
  • 642
  • 775
Mrinmay
  • 1
  • 5
  • 2
    Seems to be the same problem: https://stackoverflow.com/questions/4181861/message-src-refspec-master-does-not-match-any-when-pushing-commits-in-git – sweintritt Sep 02 '22 at 04:50
  • Note that you're not on a branch named `master`. You are on a branch named `develop`. What made you believe you should run `git push -u origin master` in the first place? – torek Sep 02 '22 at 08:43

1 Answers1

0

check if the local repo is connected to the remote repo (git remote origin ....). then check the email you are using to push if it is connected to the repo as well git config user.email

WARUTS
  • 72
  • 7