如果有来生,要做一棵树,站成永恒。
没有悲欢的姿势,一半在尘土里安详,一半在风里飞扬,一半洒落荫凉,一半沐浴阳光。
非常沉默、非常骄傲。
从不依靠、从不寻找。
git 暂存区的意义是什么?
1.git 的 add ,是一个容易引起疑问的命令。在 subversion 中的 svn add
动作是将某个文件加入版本控制,而 git add的意义完全不同。
同时, git diff --cached
是比较 stage 的文件的差异的,也是一个不直观的命令。
github 2008年的blog中,也提到,容易引起混淆:
https://github.com/blog/196-gittogether-2008
http://learn.github.com/p/normal.html
things like making use of the term ‘stage’ for things that happen in the index (such as using ‘git diff —staged’ instead of ‘git diff —cached’) is being worked on. I’m excited that staging files may soon be done via ‘git stage’ rather-than/in-addition-to ‘git add’. This is nice for new users who often have a hard time seeing why you have to keep ‘git add’ing to stage your changes.
用法: string sprintf(string format, mixed [args]…);
传回值:字串
函式种类:资料处理
内容说明:本函式用来将字串格式化。参数 format 是转换的格式,以百分比符号 % 开始到转换字符为止。
在转换的格式间依序包括了: