zoukankan      html  css  js  c++  java
  • Git使用

    1.官网下载:这里

    2.产生密钥:

    ssh-keygen -t rsa -C "1047210553@qq.com"     #git set ssh rsa
    cat ~/.ssh/id_rsa.pub                        #git cat id_rsa.pub

    3.常用操作:

    Git global setup
    git config --global user.name "Parishe"
    git config --global user.email "1047210553@qq.com"
    Create a new repository
    mkdir HelloNote-iOS
    cd HelloNote-iOS
    git init
    touch README.md
    git add README.md
    git commit -m "first commit"
    git remote add origin git@gitlab.com:Parishe/HelloNote-iOS.git
    git push -u origin master
    Push an existing Git repository
    cd existing_git_repo
    git remote add origin git@gitlab.com:Parishe/HelloNote-iOS.git
    git push -u origin master
    
    Common action rule
    git clone git@gitlab.com:Parishe/HelloNote-iOS.git #克隆 git add -A #添加当前所有文件 git commit -m "update" #提交 git push -u origin master #上传
    git reset --hard origin/master #重置本地文件头 git pull #下载
  • 相关阅读:
    双端队列
    顺序循环队列
    顺序队列
    Counting Triangles(hd1396)
    蒟蒻之栈模拟递归
    链栈以及顺序栈应用—算数表达式
    栈的简单应用-进制转换
    链栈
    共享栈
    顺序栈
  • 原文地址:https://www.cnblogs.com/ht-927/p/4277055.html
Copyright © 2011-2022 走看看