10 Sep 2013
c++
ctags -R --c ++-kinds= +p --fields = +iaS --extra = +q <tag-name>
...
阅读全文 ...
10 Jul 2013
例子
1. visual studio -> 属性 -> 配置属性 -> 生成时间 -> 命令行
if not exist " $( OutDir) " mkdir " $( OutDir) "
xcopy /Y /Q " $( EngineRoot) external \w ebsockets \p rebuilt \w in32 \* .*" " $( OutDir) "
xcopy " $( ProjectDir) .. \R esources" " $( OutDir) " /D /E /I /F /Y
...
阅读全文 ...
17 May 2013
冲突
丢弃本地的所有修改
- 未commit: git checkout .
- 已经commit: git reset --hard HEAD / git reset --hard HEAD^ (HEAD^是上一个HEAD) 或者 git checkout commit-id
从出错中学习Git
Problem 1
error: object file .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab is empty
fatal: loose object 9a83e9c5b3d697d12a2e315e1777ceaf27ea1bab ( stored in .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab) is corrupt
solution:
$ rm -fr .git
$ git init
$ git remote add origin your-git-remote-url
$ git fetch
$ git reset --hard origin/master
$ git branch --set-upstream-to = origin/master master
...
阅读全文 ...