Git basic

作者: sszhang | 来源:发表于2018-07-21 16:34 被阅读0次

    clone the project

    git clone PASTE HTTPS OR SSH HERE
    

    go into/return back the project

    cd NAME-OF-PROJECT
    cd ..
    

    list the connect

    ls
    ls *.md
    

    create directory or README.md file,show README.md

    mkdir NAME-OF-YOUR-DIRECTORY
    
    touch README.md
    nano README.md
    #### ADD YOUR INFORMATION
    #### Press: control + X
    #### Type: Y
    #### Press: enter
    
    cat README.md
    

    remove a file, remove a directory and all of its contents

    rm NAME-OF-FILE
    
    rm -r NAME-OF-DIRECTORY
    

    view command history

    history
    

    show which directory I am in

    pwd
    

    clear the shell window

    clear
    

    相关文章

      网友评论

          本文标题:Git basic

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