zoukankan      html  css  js  c++  java
  • git 常用操作

    1、修改最后一次提交的注释

    git commit --amend

    2、补丁问题

    生成git patch :git format-patch -n <commit_id>

    运用git patch:git am <commit_id>.patch

    3、git reset <commit_id> 将commit的信息去掉,修改依然保留

         git reset --hard <commit_id> 回退到指定的commit_id,不保留修改

    4、git cherry-pick <commit_id>

    git branch xxx

    git checkout xxx

    git diff

    git status

    git commit -am "xxxxxx"

    git log-graph

     git 断点续传

      git init

      git fetch http://android.git.kernel.org/common.git

       git branch -a

       git checkout remotes/....

  • 相关阅读:
    3.26
    3.25
    3.24
    3.23 JS学习
    3.22 团队作业1 疫情数据可视化
    3.19 个人作业1源码
    3.18 个人作业源码
    5.06python
    5.05Android
    5.04Android
  • 原文地址:https://www.cnblogs.com/thjfk/p/3727906.html
Copyright © 2011-2022 走看看