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

  

最新文章

  1. Netsuite > Employee Record Name维护规则
  2. jdk安装和环境变量配置
  3. 谈谈.NET中常见的内存泄露问题——GC、委托事件和弱引用
  4. 纯手写分页控件CSS+JS+SQL
  5. IOS下载资源zip到本地然后读取
  6. 记JavaScript的入门学习(三)
  7. Hibernate基本原理
  8. java虚拟机学习-JVM内存管理:深入Java内存区域与OOM(3)
  9. Mac QQ 怎么清除聊天记录
  10. Shell的基本命令(第一天),根据w3c学习得
  11. React Fiber 数据结构揭秘
  12. XML详解二XML的解析与创建
  13. .net 超长URL请求返回404错误-解决方法
  14. win7&win10 右键添加 cmd
  15. Two strings 的另一种解法
  16. libc中的标准函数 localtime和localtime_r 的用法
  17. 【Scala】Scala-使用ExecutorService-等待所有线程完成
  18. actor binary tree lab4
  19. TFS WorkItem Permission Setting
  20. 利用Java剖析工具JProfiler查找内存泄漏的方法

热门文章

  1. java 调用oracle 分页存储过程 返回游标数据集
  2. 安装Android Studio报failed to find java version for 'C:\windows\system32\java.exe':[2] The system cannot find the specified file.错误的解决方案
  3. CGAL Manual/tutorial_hello_world.html
  4. 粗略阅读《Agile Software Development》后的感想
  5. yum和rpm命令详解
  6. POJ 1135 Domino Effect(Dijkstra)
  7. vs2012+cmake+opencv+opencv unable to find a build program corresponding to "Visual Studio 12 Win64". CMAKE_MAKE_PROGRAM is not set
  8. loadrunner http协议put模式脚本编写
  9. ANDROID_MARS学习笔记_S02_006_APPWIDGET2_PendingIntent及RemoteViews实现widget绑定点击事件
  10. 防止服务器宕机时MySQL数据丢失的几种方案