git 常用命令

  刚接触git,整理一下git常用命令

    git clone  克隆文件

    git pull 更新

    git push 提交

    git format-patch origin/master 打patch

  ------------------

  git 本地分支

    git branch 查看本地所有分支

    git branch xx 新建分支

    git checkout xx 切换分支

    git status 查看当前状态 

    git add . 添加到缓存

    git commit -a -m "" 提交到本地

    git merge xx  把合并到主分支

    git log  查看提交日志

原文地址:https://www.cnblogs.com/wasd89/p/3612381.html