git的一些命令

xiaoxiao2021-02-28  40

平时做项目,WebStorm对git的支持度很高,手动拉下,查看区别,提交,revert什么的,都挺方便的。有时候也会开命令行写(脑子比较昏的时候,直接用图形化的界面容易出错)。

现在总结下: 涉及到bash shell:

cat (tail,head) clear ls/ll pwd vim cp/mv(src dest) grep

git init git status(查看状态) git log(查看提交记录什么的,commit的hash值什么的) git diff (这个真的要在webstorm看的比较清楚) git checkout !!!!这个很重要 git checkout -b git branch 查看分支 git pull (平时webstorm基本就fetch加rebase了) git merge(合并分支) git push origin master

然后工作中上线和回滚一般是JAVA工程师的工作了,主要是打包,版本号,备份什么的。

转载请注明原文地址: https://www.6miu.com/read-78621.html

最新回复(0)