Think before you speak, read before you think.

git使用笔记

by

in

从另一个分支拷东西,如在 develop 分支下

git merge --ff-only master

对于具体的一台机器,如果通过 ssh 操作 git,可以在 ~/.ssh/config 中指定 key

 Host github.com
 Hostname github.com
 IdentityFile ~/.ssh/id_rsa.github

查看当前修改与HEAD(当前版本库头指针)进行比较

git diff HEAD

如果只显示修改的文件, 使用

git diff --stat

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *