美文网首页
Git使用问题整理

Git使用问题整理

作者: iYarin | 来源:发表于2017-11-14 16:40 被阅读0次

    1. 账户问题处理

    • 查看当前配置了哪些Git账户在Terminal中输入如下命令

    git config --list


    • 修改账户可以使用如下命令

    git config --global user.name "yourgitname"
    git config --global user.email "yourmail"

    • 查看Git安装目录命令

    which git

    • 查看Git版本

    git version

    • 生成ssh key

    1、终端:cd ~/ssh
    2、生成 SSH KEY:ssh-keygen -t rsa -C 邮箱
    3、一直Enter,不设置文件名,不设置密码

    2.如何删除本地Git仓库

    在本地仓库的目录下调用命令行删除根目录下的.git文件夹,输入

    find . -name ".git" | xargs rm -Rf

    相关文章

      网友评论

          本文标题:Git使用问题整理

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