1、初始化一个Git仓库,使用git init命令。
2、添加文件到Git仓库,分两步:
第一步,使用命令git add ,注意,可反复多次使用,添加多个文件;
第二步,使用命令git commit,完成。
3、查看工作区的状态,使用git status命令。
如果git status告诉你有文件被修改过,用git diff可以查看修改内容。
4、版本切换
G...
分类:
其他好文 时间:
2014-07-27 11:35:23
阅读次数:
319
Description
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to r...
分类:
其他好文 时间:
2014-07-27 11:17:12
阅读次数:
255
在OGG (Oracle GoldenGate) 中使用SCHEMATRANDATA的话,需要额外的db patch...
分类:
数据库 时间:
2014-07-26 15:17:50
阅读次数:
250
git status, git diff, git rm, git mv等文件操作命令解释。...
分类:
其他好文 时间:
2014-07-24 17:47:16
阅读次数:
248
Situation one: you are trying to compile a package from source and you discover that somebody has already done the work for you of modifying it slight...
分类:
其他好文 时间:
2014-07-24 12:15:45
阅读次数:
323
; Basic Block Input Regs: rax - Killed Regs: 0000000000048353 3D8419D411 cmp eax, 0x11d41984 - Killed Regs: rax000000000004835a 488D058F6D0300 lea r.....
分类:
其他好文 时间:
2014-07-22 22:53:57
阅读次数:
252
在分析或编写代码的过程中,经常需要在文件中查找字符串或对两个文件进行比较。Linux下常用的命令是grep和diff。Windows下文件比较有比较好的开源工具,如WinMerge。在文件中寻找字符串不清楚是否有好的开源工具。最近发现windows居然有dos命令可以满足需求。...
分类:
其他好文 时间:
2014-07-21 11:43:15
阅读次数:
259
diff-NurDiff和patch是Linux标配的工具。在Windows上,也有移植的版本可以使用。使用中注意:1、保证文件名完全相同,避免只有大小写不同的文件存在。2、Diff只能比较文本文件,二进制文件只能判断是否相同,不能记录差异。Diff根据文件的前几个字节判断文件是不是文本文件。使..
分类:
编程语言 时间:
2014-07-17 08:15:04
阅读次数:
342
这一题用了DFS对每一种方法进行尝试,直到有一种成功的就possible;#include #include "string.h"using namespace std;int diff;int card[26][4]; //用于记录不同卡片的上、右、下、左、方向的数字int ca...
分类:
其他好文 时间:
2014-07-16 15:21:44
阅读次数:
201