Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 646 Bytes

note.md

File metadata and controls

37 lines (33 loc) · 646 Bytes

个人笔记

关键词

  • commit: 提交变更
  • stash: 工作区快照
  • tag: commit_id alias 标签/别名
  • HEAD: 当前工作分支指针
  • origin: git默认远程仓库名
  • master: git默认主分支名
  • dev: 行业默认开发分支名
  • issue-001: // fix bug
  • feature-001: // add feature

结构

  • remote repository 远程仓库
  • local repository 本地仓库
  • branch 工作分支
  • stage 暂存区
  • workspace 工作区
  • stash 工作区快照

操作

  • git init

  • git pull

  • git push

  • git add

  • git rm

  • git commit

  • git branch

  • git checkout/switch

  • git merge

  • git status

  • git rebase

  • git tag

  • git log

  • git stash