1

当前目录下!!

git init

git remote add origin https://github.com/lucy3505/learning.git

git checkout -b studyGit

本地创建新分支(-b)并切换到新分支(checkout) 左下角看分支

git add .

git commit -m 'init'

git push

git push --set-upstream origin studyGit

输入账号密码

在本文件下的.git文件里的config里修改

url = https://lucy3505:password@github.com/lucy3505/learning.git

posted @ 2019-10-24 17:01  燕子fly  阅读(82)  评论(0编辑  收藏  举报