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

git 空仓库笔记

标识身份,建议先完成 Git 全局设置

git config --global user.name “账号”
git config --global user.email “email”

方式一:克隆仓库

git clone https://url/your.git
cd your_path
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 https://url/your.git
git add .
git commit
git push -u origin master

方式三:导入代码库

git clone --bare https://url/your.git
cd your_path
git remote set-url origin https://url/your.git
git push origin --tags && git push origin --all
http://www.lryc.cn/news/367109.html

相关文章:

  • 字母异位词分组(charyw)
  • 力扣 41.缺少的第一个正整数
  • Git从入门到放弃
  • 003.数据分析_PandasSeries对象
  • 【介绍下什么是Kubernetes编排系统】
  • linux防止nmap扫描
  • 基于SpringBoot的装饰工程管理系统源码数据库
  • 2024前端面试准备2-JS基础知识回顾
  • C++ 环形链表(解决约瑟夫问题)
  • 【微信小程序】模板语法
  • 深入了解 C 语言 Bug
  • Redis 内存回收
  • 【讲解下ECMAScript和JavaScript之间有何区别?】
  • Linux基本指令查询硬件信息001
  • Spring Boot(七十四):集成Guava 库实现布隆过滤器(Bloom Filter)
  • 二叉查找树详解
  • 3072. 将元素分配到两个数组中 II
  • 城市之旅:使用 LLM 和 Elasticsearch 简化地理空间搜索(二)
  • 【知识点】 C++ 构造函数 参数类型为右值引用的模板函数
  • 华为云服务器-云容器引擎 CCE环境构建及项目部署
  • Linux shell编程学习笔记57:lshw命令 获取cpu设备信息
  • 连山露【诗词】
  • 【Qt】Frame和Widget的区别
  • Python爬虫实战:从入门到精通
  • 堆算法详解
  • 6.6SSH的运用
  • MySQL-备份(三)
  • 结构体(1)<C语言>
  • HW面试应急响应之场景题
  • 30-unittest生成测试报告(HTMLTestRunner插件)