zoukankan      html  css  js  c++  java
  • git

    git reset --hard HEAD|commit     HEAD清掉现在的head   HEAD~2 清掉最后两次提交 |  commit 跳转到指定的一次commit

    git reflog 找回reset的撤销

    git revert commit 回滚到commit

    git cherry-pick用于把另一个本地分支的commit修改应用到当前分支。

    配置脚本:

    git config --global user.name "xxxx"
    git config --global user.email "xxxx@xxxx.com"
    git config --system core.editor vim
    git config --system color.ui "auto"
    git config --global alias.co checkout
    git config --global alias.df diff
    git config --global alias.br branch
    git config --global alias.st status
    git config --global alias.ct commit
    git config -l

    #cat <<EOF >> /etc/bashrc
    #EOF
    #. /etc/bashrc

    cat <<EOF >> ~/.bashrc
    alias grep='grep --color=auto'
    # For colourful man pages (CLUG-Wiki style)
    export LESS_TERMCAP_mb=$'E[01;31m'
    export LESS_TERMCAP_md=$'E[01;31m'
    export LESS_TERMCAP_me=$'E[0m'
    export LESS_TERMCAP_se=$'E[0m'
    export LESS_TERMCAP_so=$'E[01;44;33m'
    export LESS_TERMCAP_ue=$'E[0m'
    export LESS_TERMCAP_us=$'E[01;32m'
    EOF

    source ~/.bashrc

  • 相关阅读:
    关于java和jvm的思考
    java之try、catch、finally
    Microsoft SQLServer有四种系统数据库
    HDU 5087
    uva639 暴力、回溯
    uva127
    uva 131
    洛谷 P2580 于是他错误的点名开始了
    字典树(trie)
    HTML学习笔记
  • 原文地址:https://www.cnblogs.com/banwhui/p/4863432.html
Copyright © 2011-2022 走看看