zoukankan      html  css  js  c++  java
  • git的配置文件

    cat ~/.gitconfig       #git 的配置

    git help xx      #查看帮助文档

    [alias]

    st = status  --short --branch

    # 增加commit

    ci = commit -a -v -s 

    # 合并改过的内容

    cm = commit -a --amend -C HEAD

    #在commit的基础上修改commit

    ca  = commit --amend

    # switch to branch

    co = checkout -b

    #only create a new brach

    br= branch

    bv = branch -vv

    ba = branch -ra

    #delete the branch

    db = branch -d

    df = diff

    dc = diff --cached

    lg = log -p     #git log lg ./  查看当前log的详细信息

    lf = log --stat

    last = log -1 HEAD   #查看最近的log

    #以某种格式列出log

    ll = log --pretty=format:"%C(yellow)"...

    ld = log --pretty=format:"%C(yellow)%h\"

    ls = log....

    lo = log --oneline

    #删除log中的第一个commit

    un = reset --hard  HEAD

    uh = reset --hard HEAD^

    aa = add --all

    mm = merge --no-ff

    pu = push --tags

    pl = pull ---rebase

  • 相关阅读:
    Python-模块
    POJ 1631 nlogn求LIS
    POJ 1274 二分图匹配
    POJ 3661 DP
    POJ 3662 二分+Dijkstra
    POJ 3666 DP
    POJ 2373 单调队列优化DP
    祝自己生日快乐
    POJ 2385 DP
    POJ 3122 Pie 二分答案
  • 原文地址:https://www.cnblogs.com/yieli/p/7693872.html
Copyright © 2011-2022 走看看