美文网首页
Git 命令初步

Git 命令初步

作者: oneoverzero | 来源:发表于2020-03-20 23:28 被阅读0次

    Git 全局设置:

    git config --global user.name <your_user_name>
    git config --global user.email <your_email>
    

    创建 git 仓库:

    mkdir <dir_name>
    cd <dir_name>
    git init
    touch README.md
    git add README.md
    git commit -m "first commit"
    git remote add origin https://gitee.com/<your_user_name>/<dir_name>.git
    git push -u origin master
    

    如果已有仓库:

    cd existing_git_repo
    git remote add origin https://gitee.com/<your_user_name>/<dir_name>.git
    git push -u origin master
    

    相关文章

      网友评论

          本文标题:Git 命令初步

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