美文网首页
Basic knowledge about Git

Basic knowledge about Git

作者: 彩虹金刚_Q | 来源:发表于2018-09-25 16:47 被阅读0次

    I remembered I have used Git when did some project with friends but it is long time ago and that time I simply followed friends' instruction and haven't learned anything by myself.And such experience proved if something is too easy to get for you it is also easy to forget

    So now I just need to learn git in a systematic way by myself.I found such distributed way is really like today's block chain and such concept has been in used for a really long time, why today it becomes a new concept and be famous again? It is just like you rename internet to cloud and get money from it...

    Ok let's go back about Git itself

    To use git 

    First of all you need to install it

    Yes the magic homebrew will do the hard work

    brew install git

    And to update you can simple inpute

    brew upgrade git

    After install is to build your repository 

    cd to a path where you what to store your codes and run 

    git init

    and then you can do your operation and more git commends we can find anywhere on internet such as this one

    The most frequently used comment is 

    git checkout -b [name_of_your_new_branch]新建一个branch并且switch到那个branch~

    git clone https://gitee.com/xlh/paperjet.git

    git fetch

    Git pull

    git checkout --track origin/queenie

    git status git commit -m "注释"

    相关文章

      网友评论

          本文标题:Basic knowledge about Git

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