git 常用操作

git 

如何查看git项目在哪个路径下

git remote -v

 

 

//查看当前仓库执行过的操作的日志

git reflog

 

 

 

//初始化git

git init

 

//合并多个(2个或2个以上)commit

git rebase -i HEAD~4

 

pick b3d29ba tmp

fixup dd3631b test12

pick 84dd3e3 test1

fixup 331288a test2

 

 

//放弃rebase操作

git rebase —abort

 

https://github.com/renyangli1/Hello-world

原文地址:https://www.cnblogs.com/ron123/p/5519810.html