Git

作者: Hamiltonian | 来源:发表于2018-05-21 16:17 被阅读10次

    Command line instructions

    Git global setup
    git config --global user.name "renjingkai"
    git config --global user.email "renjingkai@cloudhearing.cn"

    Create a new repository
    git clone http://192.168.0.20/gitlab/cloudhearing/ios-bluetooth-aromatherapy-VortEssenceSmart.git
    cd ios-bluetooth-aromatherapy-VortEssenceSmart
    touch README.md
    git add README.md
    git commit -m "add README"
    git push -u origin master

    Existing folder or Git repository
    cd existing_folder
    git init
    git remote add origin http://192.168.0.20/gitlab/cloudhearing/ios-bluetooth-aromatherapy-VortEssenceSmart.git
    git add .
    git commit
    git push -u origin master

    删除远程仓库
    git remote rm origin
    查看远程仓库
    git remote -v
    清除并且充值git
    rm -rf .git

    相关文章

      网友评论

          本文标题:Git

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