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 小时前
Git Rebase 详解:概念、原理与实战示例
git
荔枝吻9 小时前
【保姆级喂饭教程】Windows下安装Git Flow
windows·git·git flow
云和数据.ChenGuang12 小时前
git中的指令解释
git
小Lu的开源日常14 小时前
在 macOS 上设置 SSH 和 Git
git·macos·ssh
eleven_h14 小时前
ERROR: Permission to Splode/pomotroid.git deni
git
WZF-Sang15 小时前
计算机网络基础——1
网络·c++·git·学习·计算机网络·智能路由器
石头wang16 小时前
如何在idea里快速地切换Windows CMD、git bash、powershell
windows·git·bash·intellij-idea
SkyrimCitadelValinor17 小时前
Git【开源分布式版本控制工具】安装-配置-常用指令-Git远程仓库-IDEA使用Git
分布式·git·gitee·开源·项目管理
mmsx2 天前
使用git生成ssh的ed25519密钥
运维·git·ssh
荔枝吻2 天前
【保姆级喂饭教程】Git图形化客户端Sourcetree安装及使用教程
git·sourcetree