git常用操作命令(持续更新...)

2017-06-19  本文已影响74人  yanhooIT

将项目托管到远程git仓库中的步骤

git config user.name user
git config user.email user@gmail.com
git config --global user.name manager
git config --global user.email manager@gmail.com
// 查看所有版本日志
git log
// 查看指定文件的版本日志
git log 文件名
// 查看分支引用记录
git reflog
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

概念介绍

git init 和 git init --bare的区别

参考资料

上一篇 下一篇

猜你喜欢

热点阅读