git手记

alias别名

总结了常用的git命令,便捷别名,vim ~/.gitconfig

[gui]
[user]
  name = Alex F. Zhang
  email = ***_work@163.com
[difftool "sourcetree"]
  cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
  cmd = "'' "
  trustExitCode = true
[alias]
  co = checkout
  br = branch
  st = status
  ci = commit
  fa = fetch --all
  pl = pull
  ps = push
  unstage = reset head^
  last = log -1 --name-only HEAD
  conf = config -l
  alias = config -l
  rb = branch -r
  tr = log -20 --oneline --graph --decorate
  log10 = log -10 --oneline --graph --decorate
  mg = merge --no-commit
  logaz = log --name-status --no-merges --author=\"author\" --pretty=\"%h, %s, %an\" # no merges
  mm = log -n 10 --oneline --author=\"author\" --pretty=\"%s\" # commit history messages
  logll = log --name-status --no-merges --author=\"linaliu\" --pretty=\"%Cgreen%H%Creset, %s, %an\"
  logsr = log -m --name-only --date=iso --pretty=\"%h, %s, %an, %ad\"
  loggrprw = log --name-only --author=\"ralphwang|Alex Zhang|linaliu\"
  ch = log -10 --author=\"Alex F. Zhang\" --pretty=\"%s\"
  logf = "!f() { git log --date=iso --pretty=\"%n%h|%an|%ad||%s\" -- \"${1}\"; }; f" # log for specified file
  loga = "!f() { git log --name-status --no-merges --date=iso --pretty=\"%n%h|%an|%ad|%s\" --author=\"${1}\"; }; f" # log for specified author
  log1 = log --no-merges --oneline --graph --decorate
  mdiff = "!f() { git diff --diff-filter=d --name-only ${1}^1...${1}^2; }; f"
  ndiff = "!f() { git diff --diff-filter=d --name-only ${1}^...${1}; }; f"
  logn = "!f() { git log -${1} ${2} --date-order --oneline --graph --decorate; }; f"
  hp = "!f() { git commit -a -m \"${1}\"; git push; }; f"
  ca = "!f() { git commit -a -m \"${1}\"; }; f" # git commit
[grep]
  extendedRegexp = true
[merge]
  tool = vscode
[mergetool "vscode"]
  cmd = "code --wait "
[diff]
  tool = bc3
[difftool "bc3"]
  cmd = "\"/c/Program Files/Beyond Compare 4/BComp.exe\"" \"$LOCAL\" \"$REMOTE\"
  trustExitCode = true
[gui]
[filesystem "Oracle Corporation|11.0.2|-635900934"]
  timestampResolution = 12001 microseconds
  minRacyThreshold = 0 nanoseconds
[http]
[push]
  default = current
[guitool "pull"]
  cmd = git pull
  noconsole = yes
[core]
  excludesfile = C:\\Users\\alexzhang\\Documents\\gitignore_global.txt
  autocrlf = false
  editor = vim
  eol = lf

GIT Bash快捷命令

alias c='clear'
alias d='. sd'
alias g='git'
alias l='git pull'
alias s='git push'
alias gst='git stash'
alias gsa='git stash apply'
alias log='git log --oneline --graph --decorate --date-order'

submodules

参考:Git-Submodules

git clone --recurse-submodules uri
git submodule update --init # already cloned

ignore __pycache__ folder

add __pycache__ into .git/info/exclude file

# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
parent_folder/__pycache__

配置代理

[user]
	name = your_id
	email = your_email
[http]
	proxy = http://domain_id:password@proxy_host:port/
	sslVerify = false
[https]
	proxy = http://domain_id:password@proxy_host:port/
	sslVerify = false
Java Agent是Arthas使用的技术,是Skywalking使用的技术,是一份十分重要的技术。 课程的稀缺性在此之前,市面上并没有针对Java Agent进行系统介绍的课程。 通过搜索引擎查找,会发现与Java Agent相关的内容大多是个人知识总结分享的内容。这些内容有如下特点:内容质量不一详略程度不一学习难度千差万别总体上来说,学习者很难有一个整体认知、系统学习的过程。 课程的设计目标 在构思课程内容时,本课程带有以下目标:课程学习梯度:从简单到复杂,让学习者有一个循序渐进的理解过程。构造完整、统一的知识体系:不是零散的知识点堆砌,而是有一个统一的贯穿始终的知识框架。具有可操作性的代码示例,不只是讲概念,更注意于实践。课程内容安排 本课程通过四章内容对Java Agent相关知识进行讲解:第一章,介绍Agent Jar的三个组成部分:Manifest、Agent Class和ClassFileTransformer。第二章,介绍Agent Jar的两种启动方式:从命令行启动和使用Attach机制启动。第三章,介绍如何利用Instrumentation API来实现Agent Jar的功能。第四章,Java Agent的应用与技巧。 通过本课程的学习,让同学们更好地建立起一个完整的知识体系:  讲师介绍我叫刘森,南京师范大学研究生毕业,2015年获得信息系统项目管理师(高级),2014年获得系统集成项目管理工程师(中级)。 目前,我的课程都是围绕着“Java字节码”技术展开: 《Java Agent基础篇》是在一个运行JVM当中提供修改字节码的机会《Java ASM系列》(免费课程)是一个操作字节码的类库《Java 8 ClassFile》专注于字节码的理论知识,入选为“51CTO数字化人才证书项目认证课程” 因此,我对字节码技术有较为深入的研究和理解,大家想学习字节码的技术可以找我:字节码技术找刘森,轻松学习又省心~~~ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值