远程仓库github
1.GitHub 首页就是注册页面:https://github.com/
2.注册和登陆自己的github的账户。
3.创建远程库
创建远程库地址别名
git remote -v 查看当前所有远程地址别名
git remote add [别名] [远程地址]
推送
git push [别名] [分支名]
克隆
命令
git clone [远程地址]
效果
完整的把远程库下载到本地
创建origin远程地址别名
初始化本地库
团队成员邀请
拉取
pull=fetch+merge
git fetch [远程库地址别名] [远程分支名]
git merge [远程库地址别名/远程分支名]
git pull [远程库地址别名] [远程分支名]
跨团队合作
fork
本地修改,然后推送到远程
Pull Request
git --第3节
最新推荐文章于 2024-01-21 21:53:15 发布