一、GitLab/Github 上创建一个仓库
GitLab
-> https://git.xxx.com/ (替换公司内域名)

Github
-> https://github.com/

二、对仓库进行操作
1、下载项目 clone project
git clone xxx.git
2、本地修改后,提交到项目上
git status
git add .
git commit -m "改了xxx,影响到xxx,解决xxx"
git push
3、从远端仓库拉代码
pull
git pull
说明:git pull = git fetch + git merge
fetch
git fetch origin
270

被折叠的 条评论
为什么被折叠?



