1.首先选择一个合适的地方创建一个空目录

mkdir learngit

   

2.通过git Init命令把这个目录变成git可以管理的仓库,瞬间git就把仓库建好了

3.将编写的文件放到 learngit目录或者子目录下,然后使用两个命令

git add 告诉git,把文件添加到仓库

git add readme.txt

git commit 告诉git,把文件提交到仓库

git commit -m 'Wrote a readme file'

4.自行注册github.com账号,登录account setting, SSH Keys页面

点击add ssh key,在key文本里面粘贴id_rsa.pub文件的内容。

5. 克隆远程仓库(后面填写地址)

git clone https://github.com/Robohou/SQL5

   

相关文章:

  • 2021-07-09
  • 2021-12-29
  • 2021-05-04
  • 2022-12-23
  • 2021-08-05
  • 2021-06-05
  • 2021-11-02
  • 2022-01-20
猜你喜欢
  • 2021-11-30
  • 2021-07-12
  • 2022-01-26
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案