git命令

配置公钥后的常用步骤,建议在要上传的文件中右键打开git

  1. 全局配置
  2. git init :初始化
  3. git add . :上传缓存区
  4. git commit - m "random" :添加说明
  5. git remote rm origin :切断原来链接
  6. git remote add origin +SSH地址或着http地址 :与远程仓库建立连接
  7. git push origin master

git push -f origin master :强制推送

设置为 Windows 风格的换行符

git config --global core.autocrlf true

设置为 Unix 风格的换行符

git config --global core.autocrlf input

相关推荐
淘矿人5 小时前
从0到1:用Claude启动你的第一个项目
开发语言·人工智能·git·python·github·php·pygame
lpfasd1235 小时前
Git/Gitee/GitHub 3 个安全凭证详解
git·gitee·github
李日灐10 小时前
< 7 > Linux 开发工具:git 版本控制器 和 cgdb/gdb 调试器
linux·运维·服务器·开发语言·git·调试器·gdb/cgdb
Gust of wind10 小时前
idea结合git和Gitee的初步使用
git·gitee·intellij-idea
夜七少eleanor10 小时前
【Git】2026全图文详解安装教程
git
海边的Kurisu10 小时前
从零开始的Git生活 | 刚实习同学的噩梦 And 参与开源不可缺的一环
git·生活
不老刘11 小时前
Git Cherry-Pick:微前端架构下的“精准医疗”与最佳实践
前端·git
爬楼的猪12 小时前
Git Folder Dashboard
git
Uncertainty!!12 小时前
claude code中添加skills自动生成git commit信息
git·git commit·claude code
FserSuN14 小时前
Git Worktree 使用学习
git·学习