git常用命令

+ git clone
+ git pull  # pull 拉
+ git push  # push 推
+ git status
+ git diff <file>
+ git log
+ git stash 暂存

Git命令

IDE中的git

目前主流的IDE中已经集成git GUI工具,比如:
PyCharm/CLion/Android Studio等

其他

git reset --hard/soft

  • --hard是直接将本地代码回退
  • --soft仍会保存local changes

参考链接

https://www.xiaohongshu.com/explore/6407eb520000000013036166

posted @ 2023-03-03 22:07  达可奈特  阅读(15)  评论(0编辑  收藏  举报