1.git remote add origin https://github.com/自己的github账户名/learn-git.git
2. git branch -M main
3.git push -u origin main
成功推送
github默认把master改名成main了,你别管它,就推master,回头去github把main分支删了,不要惯它的毛病。
按照main传也可以,不用删,到github里面把分支名字改成master就可以了
Sign in to make a reply
阳光灿烂7N
1.git remote add origin https://github.com/自己的github账户名/learn-git.git
2. git branch -M main
3.git push -u origin main
成功推送