栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

关于git 的使用 12

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

关于git 的使用 12

git config --global user.name “whoooooooh” 配置用户名

git config --global user.email “whoooooooh@foxmail.com” 配置邮箱

ssh-keygen -t rsa -C “whoooooooh@foxmail.com” 生成密钥

cat ~/.ssh/id_rsa.pub 密钥对的位置默认在计算机当前用户目录的.ssh里

ssh -T git@github.com 测试命令

转载:
https://blog.csdn.net/u011482647/article/details/112259020?utm_medium=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaidudefault-4.control404&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaidudefault-4.control40

创建新的存储,基本操作:

1、New Repository – 新存储库
2、git clone 地址 拉去
3、放文件 到目录
4、git add.
5、git commit -m ‘描述’
6、git push

分支管理
git branch:查看分支命令
git branch (branchname):创建分支命令
git checkout (branchname):切换分支命令
git merge:合并分支命令
git branch -d (branchname):删除分支命令

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/679729.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号