1. Git 配置
--system #系统级别
--global #用户全局
--local #单独一个项目
git config --global user.name "xxxx" #用户名
git config --global user.email "xxxx@xxx.com" #邮箱
git config --list # 列举所有配置
连接远程仓库github
创建
SSH Keyssh-keygen -t rsa -C登陆
GitHub,打开Account settings->SSH Keys->Add SSH Key,填上任意Title,在Key文本框里粘贴id_rsa.pub文件的内容测试是否连接
ssh git@github.com
几个概念:
工作区(Working
最后
以上就是谨慎狗最近收集整理的关于git 切换到某一次commit_【必须必会】Git命令的全部内容,更多相关git内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复