1.在文件夹里先同步代码:
git pull
2.查看当前代码状态:
git status
3.如果是以前的文件夹,先复制过来:
\cp -rf 原来的文件夹 新文件夹
这个命令是直接覆盖原来存在的文件
4.添加变更:
git add -f . //加上-f是为了防止漏掉文件
5.提交代码和日志内容:
git commit . -m "内容"
如果有以下提示:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
那就先执行这两句,记得改成你自己的邮箱和名称
6.推送到gitee:
git push origin master //这个是直接推送到生产分支,也可以是开发分支develop
结束!
Mysql8新增用户,mysql8配置权限,mysql8配置,mysql8配置文件 Linux命令,scp,scp命令,Linux复制 git commit git add centos git 搭建FTP,Linux FTP,禁止FTP登录ssh 上传文件,阿里云OSS上传,文件上传到OSS,OSS文件上传,OSS上传 微信支付,微信支付V3,PHP微信支付,微信nativePay支付,微信jsapi支付 微信支付,微信支付V3,PHP微信支付 bootstrap4 modal, lavarel The subversion command line tools are no longer provided by Xcode. 银联支付,tp5.1银联支付 支付宝即时到账,PHP支付宝 system libzip must be upgraded to version >= 0.11 CMake 3.0.2 or higher is required Class 'ZipArchive' not found chr() expects parameter 1 to be int php7.4 tcpdf unexpected '='