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

相关推荐
深海鱼在掘金5 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
noravinsc6 天前
关于Git Flow
git
蜜獾云6 天前
在Git中配置用户名和密码
git
scx_link6 天前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
南大白6 天前
IntelliJ IDEA 运行时的 JVM 本地内存溢出崩溃
git
码农小旋风6 天前
Claude Code 基础用法大全:对话、分析、修改、测试、Git 和工作流
人工智能·git·chatgpt·claude
南大白6 天前
Git 撤回提交完整方案
git
像风一样的男人@6 天前
python --实现代理服务器
git·ui
sbjdhjd6 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins
码云数智-大飞6 天前
Go Channel 详解:并发通信的正确姿势
前端·数据库·git