GIT管理指令

查看当前远程地址:

% git remote -v

移除当前地址:

% git remote remove origin

更换地址:

% git remote add origin https://gitee.com/wzqgit/yuanhou.git

在新分支上添加您需要提交的内容并提交:

% git add .

% git commit -m "添加大文件或其他更改"

查看当前分支:

% git branch

当前分支是否有内容提交

% git status

强制推送分支到远程仓库:

% git push -u origin 1.0.0.2 --force

% git push origin master --force

尝试增加 http.postBuffer 大小(例如设置为 500 MB):500x1024x1024

% git config --global http.postBuffer 524288000

相关推荐
A half moon4 小时前
【从开发到上线-全栈开发教程】Git上传本地项目到仓库
git
三水吉吉5 小时前
git commit 后,取消其中一个文件的提交
git
Albert Edison6 小时前
【Git】多人协作二(不同分支下)
git·elasticsearch·svn·github
C+++Python8 小时前
如何使用 VS Code 进行 Git 管理?
git
用户3835514240288 小时前
git 删除历史记录或历史大文件后 提交历史记录到新的仓库
git
kqz20149 小时前
主分支下某个文件夹的git记录同步到开发分支
git
午安~婉11 小时前
整理Git
前端·git
飞翔沫沫情11 小时前
关于在Jenkins 的job 中隐藏shared library 共享库相关的Git信息
运维·git·jenkins
wang60212521812 小时前
Git部署项目配置密钥-Linux系统
linux·运维·git
Knight_AL13 小时前
Git 版本回退/撤销/重置:CheckOut VS Revert VS Reset
git