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
    
  • 相关阅读:
    汇编 gdb调试
    汇编 运行错误解决办法
    binutils安装
    汇编错误
    汇编
    pthread_create()
    error2019-01-17 宏STDOUT_FILENO
    2019-01-17 跳至首行
    .NET MVC 两种视图引擎(Razor、Aspx)
    ECharts属性设置
  • 原文地址:https://www.cnblogs.com/huanlegu0426/p/dev-notes.html
Copyright © 2011-2022 走看看