美文网首页
注册账户以及创建仓库

注册账户以及创建仓库

作者: 心疼你萌萌哒 | 来源:发表于2018-06-18 17:42 被阅读0次
======================注册账户以及创建仓库===================
要想使用github第一步当然是注册github账号了, github官网地址:
https://github.com/。 之后就可以创建仓库了(免费用户只能建公
共仓库),Create a New Repository,填好名称后Create,之后会
出现一些仓库的配置信息,这也是一个git的简单教程。
Github 安装
下载 git OSX 版
下载 git Windows 版
下载 git Linux 版
配置Git
首先在本地创建ssh key;

$ ssh-keygen -t rsa -C "your_email@youremail.com"

后面的your_email@youremail.com改为你在github上注册的邮箱,之
后会要求确认路径和输入密码,我们这使用默认的一路回车就行。成
功的话会在~/下生成.ssh文件夹,进去,打开id_rsa.pub,复制里面
的key。回到github上,进入 Account Settings(账户配置),左边
选择SSH Keys,Add SSH Key,title随便填,粘贴在你电脑上生成的key。
=======================================
在linux上创建用户及邮箱192.168.44.100
[root@localhost ~]$ git config --global user.name "your name"
[root@localhost ~]$ git config --global user.email "your_email@youremail.com"
[root@localhost ~]# git clone git@github.com:guoqingyangzz/repotest.git

Cloning into 'repotest'...
Warning: Permanently added the RSA host key for IP address 
'52.74.223.119' to the list of known hosts.
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.

[root@localhost ~]# cd repotest

[root@localhost repotest]# ls
README.md

[root@localhost repotest]# touch index.html

[root@localhost repotest]# echo "this is git test" > index.html

[root@localhost repotest]# git add  index.html

[root@localhost repotest]# git commit -m "frist test"  index.html

[master 2efcf80] frist test
 1 file changed, 1 insertion(+)
 create mode 100644 index.html

[root@localhost repotest]# git push origin master
Warning: Permanently added the RSA host key for IP address 
'13.250.177.223' to the list of known hosts.
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 286 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:guoqingyangzz/repotest.git
   e149849..2efcf80  master -> master
登陆github查看提交内容

相关文章

  • 注册账户以及创建仓库

  • Github for Mac

    1.注册账户以及创建仓库 注册github账号,github官网地址:https://github.com/。 之...

  • github

    【如何使用】 1.注册账户以及创建仓库 要想使用github第一步当然是注册github账号了。之后就可以创建仓库...

  • GIT客户端搭建(windows)

    一、注册账户以及创建仓库 1、打开https://github.com直接在首页上注册; 2、点按钮注册成功之后,...

  • GitHub基础操作

    1.注册账户以及创建仓库 要想使用github第一步当然是注册github账号了。之后就可以创建仓库了(免费用户只...

  • Hexo-Cli 个人博客搭建入门

    创建Cithub域名与空间 注册注册GitHub账户.png 创建仓库创建新的仓库.png 本地环境搭建 安装Gi...

  • day11

    A我今天学了什么 注册账户以及创建仓库 Github 安装 配置Git 工作流 推送改动 分支 更新与合并 标签 ...

  • 2019-08-05【github使用】

    6. 使用github 6.1 创建github仓库 (1) 注册 github 账户,登录后,点击"New re...

  • github建立及初步使用

    注册github账户并创建仓库 安装git for Windows(Linux) 以ubuntu16为例,默认选项...

  • CocoaPods创建公有和私有Pod库方法总结

    目录 创建公有pod库注册CocoaPods账户信息创建共享库文件并上传到公有仓库编辑.podspec文件打tag...

网友评论

      本文标题:注册账户以及创建仓库

      本文链接:https://www.haomeiwen.com/subject/mjineftx.html