git提交文件的操作

git提交文件的操作()
    1、新建一个文件夹
    2、初始化这个文件夹//git init
    3、设置签名,三个级别
        当前项目
        --system 针对所有用户
        --global  针对当前用户
        
        设置签名命令举例
            git config --global user.name "lyhcc(用户名)"
            git config --global user.email "12335444@qq.com(用户邮箱)"
        
        说明:
            如果你已经使用 --global设置完之后,第二个项目可以不用设置,
            
        查询config 命令
            git config --list
    4、配置SSH KEY
        首先使用命令 ssh-keygen -t rsa -C "你的邮箱地址"
    5、将公钥*.pub方到远程仓库中
        ssh -T git@github.com可以检查是否连接成功
        https://www.cnblogs.com/chuyanfenfei/p/8035067.html(该网址中有SSH KEY配置的更详细说明)

     在github中进行设置详细步骤

        回到github网站,进入Account Settings,左边选择SSH Keys,Add SSH Key,title随便填,粘贴key

        一般windows在C:Usersuser.ssh里面 
    6、现在可以向远程库提交代码

  

原文地址:https://www.cnblogs.com/lyhcc/p/10225415.html