github_upload,上传项目

1、取消代理

复制代码
git config --global --unset http.proxy 
git config --global --unset https.proxy
$ git config --global -l
user.name=weekzs
user.email=13177079+weekzy@user.noreply.gitee.com
http.proxy=http://127.0.0.1:7890

完美解决 git 报错 "fatal: unable to access 'https://github.com/.../.git': Recv failure Connection was rese-CSDN博客

c 复制代码
//git branch -m main 是一个 Git 命令,它的作用是将当前分支重命名为 main。
git branch -M main
//添加所有文件到缓冲区
git add .
git add -A
//是一个 Git 命令,用于将暂存区(staging area)中的更改提交到本地仓库,并为这次提交添加了一个简短的提交信息。
git commit -m "second"
//git push -u origin main 是一个 Git 命令,用于将本地分支的更改推送到远程仓库,并设置上游分支(upstream branch)。下面逐步解释这个命令的含义:
$ git push -u origin main
//连接远程仓库    
git remote add origin ssh
    
info: please complete authentication in your browser...
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 268 bytes | 268.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: This repository moved. Please use the new location:
remote:   https://github.com/weekzs/Physics-Innovation-Competition_Insect-catching.git
To https://github.com/weekzs/Physics-Innovation-Competition-_-Insect-catching.git
 * [new branch]      main -> main
branch 'main' set up to track 'origin/main'.

https://blog.csdn.net/weixin_45309916/article/details/108273988

合并分支

c 复制代码
git fetch origin
git merge origin/main
复制代码
git init
git remote rm origin
git remote add origin https://github.com/CongliYin/CSS.git
git branch -M main
git push origin main
ssh -T git@github.com

//查看远程分支
git branch -r
//查看本地分支

坑:ssh: connect to host github.com port 22: Connection refused - 知乎

ssh连接超时

参考文档

https://www.cnblogs.com/nature161/p/15014265.html

复制代码
git init
git add .
git commit -m "1"
git remote add origin https://
git push -u origin master

2、下载其他分支

2、1 网址

https://blog.csdn.net/weixin_43324273/article/details/105687801

2、2 代码

复制代码
git branch -a
git checkout 分支名字
相关推荐
fthux9 小时前
“装闭”,让装修套路“装”不下去
人工智能·ai·开源·github·open source
阿里云大数据AI技术11 小时前
阿里云 ES AI 引擎版:面向 Agent 场景,为亿级租户、千亿规模向量设计的搜索引擎
人工智能·elasticsearch·agent
天天爱吃肉821812 小时前
【电源拆解:跟着问答逐一认识开关适配器PCB元器件】
大数据·人工智能·python·功能测试·嵌入式硬件·汽车
阿里云大数据AI技术12 小时前
FalconSeek 技术解析:阿里云 Elasticsearch 云原生内核如何让查询性能飙升600%
人工智能·elasticsearch
用户849137175471612 小时前
想做护眼工具却脑子一片空白?我用 OpenSpec 把模糊想法聊成了 v0.1
github·vibecoding
Elastic 中国社区官方博客12 小时前
将你的 Grafana Kubernetes 仪表板迁移到 Elastic Observability:相同的 PromQL,30 倍更快的查询
大数据·人工智能·elasticsearch·搜索引擎·容器·kubernetes·grafana
abcy07121312 小时前
storm核心实时机制
大数据·storm
灵机一物12 小时前
合伙制律所分红和提成律师个税怎么合规优化?
大数据·人工智能
wangruofeng13 小时前
git-filter-repo 把 .git 从 112MB 砍到 1.4MB,但漏推 tag 让 clone 又胖回来
github·devops
峰向AI13 小时前
Block 放出大招!Buzz:一个中继统一代码、聊天、CI 全流程
github