zoukankan      html  css  js  c++  java
  • github提交代码流程:

    (1)  检查一遍代码改动
             $git status
    (2) 将工作目录中的代码提交到暂存区
    $ git add filename  
      git add -A
    (3)  提交代码到本地库中
    $ git commit -m "comment"
     
    (4)  提交修改到服务器中
    (4.1) 将服务器中最新代码取到本地临时分支
    $ git fetch origin master:temp
     
    (4.2) 比较本地分支与临时分支的区别
    $ git diff test..temp
     
    (4.3) 将服务器上的修改合并到本地分支上
    $ git merge temp
     
    (4.4)若merge过程中出现冲突,请手动解决冲突,解决完后,执行以下命令
    $ git commit -am “comment”
        这条命令 其实是 git –add 和git  commit –m “comment”的合并。
     
    (4.5) 将本地分支的提交到服务器上
    $ git push origin (branchname):master
    如果我当地分支名字为test,那么命令为:git push origin test:master
     
     
        删除分支
        git push origin --delete <branchName> 
  • 相关阅读:
    leetcode_Basic Calculator II
    leetcode_Basic Calculator
    LeetCode_Add Two Numbers
    LeetCode_Partition List
    LeetCode_Compare Version Numbers
    LeetCode—Longest Consecutive Sequence
    Thrift数据类型
    thrift简介
    grpc与json格式互转
    grpc测试
  • 原文地址:https://www.cnblogs.com/haijieFeng/p/5594103.html
Copyright © 2011-2022 走看看