一、git push 中断问题:
# Your branch is ahead of 'origin/master' by 5 commits.
# (use "git push" to publish your local commits)
方法1(代码还需要):
# git fetch origin
# git push origin
方法2(代码不需要):
# git fetch origin
# git reset --hard origin/$branch
二、github 上传文件大
1、设置上传文件限制
# git config http.postBuffer 524288000
# git config -l
2、下载git-lfs
# wget ftp://ftp.ntua.gr/pub/linux/centos/7.8.2003/sclo/x86_64/rh/Packages/r/rh-git218-git-lfs-2.4.1-3.el7.x86_64.rpm
# rpm -vih rh-git218-git-lfs-2.4.1-3.el7.x86_64.rpm
3、执行安装
# git lfs install
# git lfs track "python_deploy_tongye_nanjing/software/mysql/Package/mysql-community-server-5.7.25-1.el7.x86_64.rpm"
# git add .gitattributes
# git commit -m "Add design file"
# git add python_deploy_tongye_nanjing/software/mysql/Package/mysql-community-server-5.7.25-1.el7.x86_64.rpm
# git commit -m "mysql rpm"
# git push origin master