ubuntu下git安装及连接github
2024-08-24 22:12:22
1.安装
sudo apt-get install git git-core git-gui git-doc git-svn git-cvs gitweb gitk git-email git-daemon-run git-el git-arch
2.在github上注册账号及建立ropository
3.测试连接github
ssh -T git@github.com
现在是ssh连不上的
4.生成本地ssh密钥
ssh-keygen -t rsa -C "your email@xxxx.com"
5.在github上设置公钥
在GitHub中,依次点击Account settings -> SSH Keys -> Add SSH Key,将id_rsa.pub文件中的字符串复制进去。
此时再用第3步的命令应该可以连接到github了
6.git初始化设置
$ git config --global user.name "Your github Name"
$ git config --global user.email you@email.address
进入项目目录
git init
将项目中文档存至Git仓库中,并且变成Git仓库能够识别的数据格式。
$ git add . # 提交
$ git commit -m "你的版本更新信息" #将项目更新到github repository上
$ git push
最新文章
- Netsuite >; Employee Record Name维护规则
- jdk安装和环境变量配置
- 谈谈.NET中常见的内存泄露问题——GC、委托事件和弱引用
- 纯手写分页控件CSS+JS+SQL
- IOS下载资源zip到本地然后读取
- 记JavaScript的入门学习(三)
- Hibernate基本原理
- java虚拟机学习-JVM内存管理:深入Java内存区域与OOM(3)
- Mac QQ 怎么清除聊天记录
- Shell的基本命令(第一天),根据w3c学习得
- React Fiber 数据结构揭秘
- XML详解二XML的解析与创建
- .net 超长URL请求返回404错误-解决方法
- win7&;win10 右键添加 cmd
- Two strings 的另一种解法
- libc中的标准函数 localtime和localtime_r 的用法
- 【Scala】Scala-使用ExecutorService-等待所有线程完成
- actor binary tree lab4
- TFS WorkItem Permission Setting
- 利用Java剖析工具JProfiler查找内存泄漏的方法
热门文章
- java 调用oracle 分页存储过程 返回游标数据集
- 安装Android Studio报failed to find java version for 'C:\windows\system32\java.exe':[2] The system cannot find the specified file.错误的解决方案
- CGAL Manual/tutorial_hello_world.html
- 粗略阅读《Agile Software Development》后的感想
- yum和rpm命令详解
- POJ 1135 Domino Effect(Dijkstra)
- vs2012+cmake+opencv+opencv unable to find a build program corresponding to ";Visual Studio 12 Win64";. CMAKE_MAKE_PROGRAM is not set
- loadrunner http协议put模式脚本编写
- ANDROID_MARS学习笔记_S02_006_APPWIDGET2_PendingIntent及RemoteViews实现widget绑定点击事件
- 防止服务器宕机时MySQL数据丢失的几种方案