zoukankan      html  css  js  c++  java
  • Dev-Notes

    git notes

    #remove one or more commits, till to the commit xxxxxx.
    
    	git reset --hard xxxxxx
    
    	git push -f
    
    #reset local branch:
    
    	git fetch;
    	git reset --hard origin/the_branch_you_wanna_align
    
    
    #squash merge, merge the changes in branch_a into branch_b within only one commit. It's better with a special comment.
    
    	git checkout branch_b
    
    	git merge --squash branch_a
    
    	git commit
    
    	git push
    
    #pull a remote branch to local, which the branch already in local, but the remote branch has been changed a lot.
    # but must noted that it will discard un-committed changes in local
    
    	git fetch
    
    	git reset --hard origin/branch_name
    

    Maven command

    # pom version update
    
    	mvn versions:set -DnewVersion=3.0.2-SNAPSHOT
    
    #If we made a mistake, then
    
    	mvn versions:revert
    
    #afterwards:
    
    	mvn versions:commit
    

    Splunk search script

    # normal search

      index=opd_raw sourcetype=volserver_debug

    #case sensitive

      index=opd_raw sourcetype=volserver_debug CASE(USD)

    Windows7 command line script

    # set jdk version temporary
    	set path=c:/jdk8;%path%
    
    # persistent the settings:
    	# You could use setx.
    	# User variable:
    	SETX PATH "%PATH%;C:MyDir"
    
    # System variable:
    	setx PATH "%PATH%;C:MyDir" /m
    
  • 相关阅读:
    ZJU_1145 OR POJ_1100 Dreisam Equations
    数据结构基础之队列
    The New Villa
    Mission Impossible 6
    数据结构基础之栈
    POJ_1185_炮兵阵地 dp+状态压缩
    (转载)Dig命令的用法
    (转载)服务发现系统etcd介绍
    golang 导入包
    1.4方程求根之弦截法
  • 原文地址:https://www.cnblogs.com/huanlegu0426/p/dev-notes.html
Copyright © 2011-2022 走看看