从github或者其他仓库拉取代码(https方式)
git clone git地址
提交代码
git add . .表示所有文件
git commit -m "注释"
git push -u origin master -u第一次提交写上
更新代码
git pull
查看所有分支
git branch -a
切换https/修改远程仓库地址
https方式提交每次都需要输入账号密码,增加配置略去
相关文章:
从github或者其他仓库拉取代码(https方式)
git clone git地址
提交代码
git add . .表示所有文件
git commit -m "注释"
git push -u origin master -u第一次提交写上
更新代码
git pull
查看所有分支
git branch -a
切换https/修改远程仓库地址
https方式提交每次都需要输入账号密码,增加配置略去
相关文章: