git入门进阶命令

来源:互联网 发布:补牙 知乎 编辑:程序博客网 时间:2024/05/16 15:14

基础命令:

http://blog.csdn.net/arkblue/article/details/9568249/

git 命令diff详解:

https://www.cnblogs.com/wish123/p/3963224.html

Git中的origin的含义

https://www.zhihu.com/question/27712995/answer/39946123

廖雪峰git教程

详细命令

https://www.cnblogs.com/springbarley/archive/2012/11/03/2752984.html

高级命令

https://github.com/521xueweihan/git-tips



点一:git commit -am "str"

git commit -am "str"
等同于

git commit -a -m "str"
-a是add等同于git add .

一般push:

git add .

git commit -m "message"

git push

也可以

git commit -am "message"

git push

点二:版本回退

查看版本,了解提交过哪些git log
减少输出信息:git log --pretty=oneline