关于git:git

1次阅读

共计 288 个字符,预计需要花费 1 分钟才能阅读完成。

git 常用命令
  • git status 查看文件状态
  • git branch 查看分支
  • git diff 查看批改的内容
  • git log 查看提交记录
  • git add . (将内容从工作目录增加到暂存区)
  • get checkout . 撤销提交之前所有批改的文件内容
  • git commit -m “xxx” 提交记录
  • git push origin master
  • git pull origin master
  • git checkout xxx/git checkout -b xxx (切换分支)
  • git fetch 拉取所有的分支
  • git merge xxx 合并分支,把分支代码合并到以后分支上
  • git stash 先将数据存到缓存
  • git stash pop 将之前缓存的文件推出来
正文完
 0