美文网首页
Git Basic

Git Basic

作者: zjunchao | 来源:发表于2016-07-15 17:00 被阅读27次

    A simple command-line tutorial:

    Git global settings:

    git config --global user.name "zjcdxzy"
    git config --global user.email "709331891@qq.com"

    Create git repository:

    mkdir MWeb
    cd MWeb
    git init
    touch README.md
    git add README.md
    git commit -m "first commit"
    git remote add origin https://git.oschina.net/zjcdxzy/MWeb.git
    git push -u origin master

    Existing project?

    cd existing_git_repo
    git remote add origin https://git.oschina.net/zjcdxzy/MWeb.git
    git push -u origin master

    相关文章

      网友评论

          本文标题:Git Basic

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