git error: src refspec dev does not match any

reason

When git pushes files to the warehouse, if the pushed branch does not exist locally; SRC refspec dev does not match any will be reported

Problem solving

    git checkout ‘Submit branch’; If the branch exists, push it directly. If the branch does not exist; Create a branch git branch ‘and submit a new branch’ later


Read More: