git命令操作

git status  查询状态
git push  提交

git clone  +地址

开启vue项目:
npm install  安装依赖包
cnpm install  安装依赖包
进入项目根目录 npm run dev(跑起来~)
>Listening at http://localhost:8080

git pull 更新
git add .  根目录下提交
git commit -m ""  命名

git push 提交

上传项目文件:
git clone +地址
git git add .
git commit -m'lch'
git push 

冲突解决:
git pull
git stash
git pull
git stash pop
git status
git add .
git commit -m '冲突'
git push

gitlab上传项目步骤:
git init
git remote add origin +地址
git add .(稍等片刻)
git commit -m "注释"
git push -u origin master

猜你喜欢

转载自blog.csdn.net/weixin_40292626/article/details/80108866