error: src refspec master does not match any. error: src refspec master does not match any.



  • Full Error:
    error: src refspec master does not match any.
    error: failed to push some refs to 'https://github.com/deeble34345/iac.git'

    Action:

    $ git push origin master
    error: src refspec master does not match any.
    error: failed to push some refs to 'https://github.com/deeble34345/iac.git'
    

    FIx/Solution: For some beginners using git, it is common not to perform the add and commit, before pushing to the remote git repository. This is a possible reason for the error, git it good at providing hints in the error.

    $ git add localgitdir
    $ git commit -m "Initial Commit"
    $ git push origin master
    

Log in to reply
 

© Lightnetics 2020