Mots clés : gitgit-commitgit-clonegit-addgit-refspecgit
92
mkdir repo && cd repo git remote add origin /path/to/origin.git git add .
git push -u origin master error: src refspec master does not match any.
git commit -m "initial commit" git push origin master
86
git push origin HEAD:<remoteBranch>
79
error: src refspec master does not match any. error: failed to push some refs to 'git@github ... .git'
touch README git add README git add (all other files) git commit -m 'reinitialized files' git push origin master --force # <- caution, --force can delete others work.
69
git push -u origin master error: src refspec master does not match any.
git commit -m "initial commit" git push origin master