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

相关推荐
louisgeek9 小时前
Git submodule 子模块
git
imDwAaY9 小时前
6篇文章讲清楚Git:Git 实用技巧:暂存现场、挑选提交与定位 Bug (5/6)
git·后端
imDwAaY10 小时前
6篇文章讲清楚Git:Git 团队开发实践:从 Pull Request 到版本发布 (6/6)
git·后端
誰能久伴不乏1 天前
看懂 Git 团队协作全流程:分支、提交、PR、rebase 到底在干嘛
git
sunshine22 girl1 天前
git tag-项目流程
git
imDwAaY2 天前
6篇文章讲清楚Git:Git 远程协作:fetch、pull、push 到底有什么区别?(3/6)
git·后端
imDwAaY2 天前
6篇文章讲清楚Git:Git 撤销与恢复:reset、revert、restore 应该怎么选?(4/6)
git
用户73309646123092 天前
再也不怕手滑丢代码!给 git 高危操作加一层安全校验
git
广白2 天前
Git Tag 实战:从出包追溯到版本发布
前端·git·面试
Winlifes7 天前
我给 Codex 做了一个 Git 面板:分支树、提交历史和工作区操作
git