zoukankan      html  css  js  c++  java
  • it入门之:学会使用Git 分布式版本控制工具

    环境:window

    工具:git & TortoiseGit

    1. 下载安装以及配置环境变量 :略略略
    2. 创建Github账户:登录https://github.com/用自己的常用邮箱创建账户,用来管理自己的代码

    3.  打开Git-bash 输入:
       ssh-keygen -t rsa -C "email_address@xx.com"  #连续三次回车,默认:/c/Users/Administrator/.ssh
    4. ·
      • 在c盘,当前用户文件夹下,有个.ssh 文件夹,在里边 找到 id_rsa.pub文件,用记事本打开,复制其中的全部内容。
      • 登陆你的GitHub账户,依次点击Account Settings > SSH Public Keys > Add another public key,把id_rsa.pub中的内容拷贝进去 。
      • 成功添加
    5. 设置成功:
      $ ssh -T git@github.com #校验访问
      The authenticity of host 'github.com (192.30.255.113)' can't be established.
      RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
      Are you sure you want to continue connecting (yes/no)? yes
      Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
      Hi lizeyun! You've successfully authenticated, but GitHub does not provide shell access. #ok~

     创建一个新的仓库

    echo "# django-Blog" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/lizeyun/django-Blog.git
    git push -u origin master

    感谢: window Git 教程 

    Ansible 教程

    Jenkins 教程

    Jenkins Centos教程

             

  • 相关阅读:
    H5 后代选择器
    H5 id选择器和class选择器
    H5 类选择器
    H5 id选择器
    H5 标签选择器
    H5 颜色属性
    H5 文本属性
    H5 文字属性的缩写
    H5 字体属性补充
    H5 文字属性
  • 原文地址:https://www.cnblogs.com/simplezy/p/6722284.html
Copyright © 2011-2022 走看看