Tagged: tips RSS

  • number5 23:32 on May 26, 2009 Permalink
    Tags: , tips   

    Git Tips: 获取特定版本的某一文件 

    获取特定版本的某一文件
    git checkout <revision> <paths>

    例如

    git co 345a7c src/hello.c

     
  • number5 15:36 on January 3, 2009 Permalink
    Tags: rsync, snippet, ssh, tips   

    [tips] Rsync via SSH with non-standard port 

    just noted down here in case I forgot later :P

    rsync -avze "ssh -p 22222 -ax" host1:/SOURCE/DIR /TARGET/DIR

    Bonus: Rsync tips and tricks

     
  • number5 14:47 on December 31, 2006 Permalink
    Tags: shortcut, tips, vim   

    Vim tips: 时间戳快捷键 

    :map <f2> a<c-r>=strftime("%c")</c-r></f2>

    在非编辑模式下,按F2就会在光标位置插入一个当天时间的时间戳

    去掉前面的冒号, 加入到.vimrc, 以后用vim的时候就都有这个快捷键了

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel