git的命令行操作

作者: gu_lao_rou-p 分类: git 发布时间: 2022-01-03 16:49

声明当前目录为git仓库

git init

绑定远端仓库

git remote add origin 仓库的URL

拉取远端仓库的内容

git pull

添加当前目录所有文件到缓存

git add .

提交一个记录

git commit -a "本次提交的内容"

把代码上传到远端仓库

git push

//如果说是第一次上传,需要设置强制更新,指定的分支
git push -u origin master


Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 26

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 27

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 28
标签云