首页 > 其他 > 详细

Git系列三之在线GitHub使用方法

时间:2017-05-08 23:05:14      阅读:338      评论:0      收藏:0      [点我收藏+]

代码托管地址:https://github.com

一、认证方式

技术分享

1、https方式:不需要认证

[root@git-node1 demo]# git clone https://github.com/nulige/Bastion-of-machine.git
Initialized empty Git repository in /root/demo/Bastion-of-machine/.git/
warning: You appear to have cloned an empty repository.
[root@git-node1 demo]# ll
总用量 8
drwxr-xr-x 3 root root 4096 5月   8 22:05 Bastion-of-machine
-rw-r--r-- 1 root root   15 5月   8 20:25 index.php

2、ssh方式:需要认证

[root@git-node1 demo]# git clone git@github.com:nulige/Bastion-of-machine.git
Initialized empty Git repository in /root/demo/Bastion-of-machine/.git/
The authenticity of host github.com (192.30.255.112) cant be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added github.com,192.30.255.112 (RSA) to the list of known hosts.
warning: You appear to have cloned an empty repository.
[root@git-node1 demo]# 
[root@git-node1 demo]# ll
总用量 8
drwxr-xr-x 3 root root 4096 5月   8 21:57 Bastion-of-machine
-rw-r--r-- 1 root root   15 5月   8 20:25 index.php

二、使用方法

1、把本地仓库代码推到远程项目仓库(针对已经存在项目仓库)

 

Git系列三之在线GitHub使用方法

原文:http://www.cnblogs.com/nulige/p/6828099.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!