当前位置: 首页 > news >正文

【Git】如何将本地文件进行Git仓库归档

Git 全局设置

git config --global user.name "mcihael"
git config --global user.email "michael@520.com"

创建新版本库

git clone git@code.xxxxxx.git
cd branch-name
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

已存在的文件夹

cd existing_folder
git init
git remote add origin git@code.xxxxxx.git
git add .
git commit -m "Initial commit"
git push -u origin master

已存在的 Git 版本库

cd existing_repo
git remote rename origin old-origin
git remote add origin git@code.xxxxxx.git
git push -u origin --all
git push -u origin --tags
http://www.lryc.cn/news/134416.html

相关文章:

  • uniapp 使用腾讯视频 的 坑
  • LinkedList
  • 创作新纪元:知乎、阅文加码AI大模型,撬动创作者经济
  • PAT(Advanced Level) Practice(with python)——1067 Sort with Swap(0, i)
  • Python爬取斗罗大陆全集
  • 前馈神经网络解密:深入理解人工智能的基石
  • 顺序栈Sequential-stack
  • 关于工牌(必须5-10个字)
  • PHP混淆加密以及常用的一些加密工具
  • 无涯教程-PHP - ereg()函数
  • 【Ubuntu】简洁高效企业级日志平台后起之秀Graylog
  • TCP特点UDP编程
  • 超级计算机
  • LeetCode863. 二叉树中所有距离为 K 的结点(相关话题:深度遍历,广度遍历)
  • Kotlin 基础学习
  • CW6B-90A-RCW6B-100A-RCW6B-110A-RCW6B-115A-R三相三线式滤波器
  • DP读书:鲲鹏处理器 架构与编程(九)鲲鹏920处理器片上系统
  • 【HBZ分享】java中的BitSet 与 Redis中的BitMap 与 布隆过滤器
  • 《Linux从练气到飞升》No.16 Linux 进程地址空间
  • 【算法题】7004. 判别首字母缩略词
  • ClickHouse(二十一):Clickhouse SQL DDL操作-临时表及视图
  • redis乐观锁+启用事务解决超卖
  • 智能画笔:如何利用AI绘画API打造独特的创作风格
  • ElasticSearchConfig
  • 解决vant组件 van-dialog造成的页面闪动问题
  • SpringBoot内嵌Tomcat连接池分析
  • 分布式协调服务中的几个常见算法
  • 易服客工作室:Houzez主题 - 超级房地产WordPress主题/网站
  • mysql通过binlog日志恢复误删数据
  • Istio入门体验系列——基于Istio的灰度发布实践