一次git合并与上传

命令

git init

git add .

git commit -m "shangchuang"

git status

git branch -M main

git remote add origin https://gitcode.com/hashiqimiya/mcp-framework.git

git push -u origin main

弹出出现用户与密码

若出现仓库已有文件,需要合并

git pull origin main --allow-unrelated-histories

若出现需要修改连接仓库,需要重设

git remote set-url origin https://github.com/jieterui/mcp-framework.git

相关推荐
happyness4413 小时前
Git:AI编程时代的“安全带“与“时光机“
git·ai编程
To_OC13 小时前
踩坑无数!终于捋顺Git基础核心工作流(新手必看)
git·程序员
xuhaoyu_cpp_java18 小时前
Git学习(三)
经验分享·笔记·git·学习
C137的本贾尼19 小时前
Git基本操作(二):add与commit,把文件交给Git管理
git
咸鱼永不翻身20 小时前
Git Hooks—提交Commit前检查本地时间是否不对
git·git-hooks·git钩子
John_ToDebug20 小时前
如何针对指定目录生成 Git Patch 并精准应用到其他分支
chrome·git
Joy T20 小时前
【Web3】Hardhat工程架构中Solidity与TypeChain的协作机制
git·架构·typescript·web3·智能合约·hardhat·typechain
步十人20 小时前
【Git】基础概念与在vscode中的简单使用
git
代码中介商20 小时前
Git 版本控制完全指南:从分支管理到远程协作
linux·git
无风听海1 天前
git fsck 深度解析 Git 仓库的体检医生
git