git常用命令

1、git框架介绍 

  • Workspace:开发者工作区
  • Index / Stage:暂存区/缓存区
  • Repository:仓库区(或本地仓库)
  • Remote:远程仓库

 

 

新增文件的命令:git add file或者git add .
提交文件的命令:git commit –m或者git commit –a
查看工作区状况:git status –s
拉取合并远程分支的操作:git fetch/git merge或者git pull
查看提交记录命令:git reflog

posted @ 2022-02-16 15:50  moonsherry  阅读(28)  评论(0)    收藏  举报