git日常命令大全(附流程图)

CREATE

From existing data

From Existing repo

Remove repository from existing local data

UPDATE

Fetch latest changes from origin

Pull latest changes from origin

Apply a patch that someone sent you

PUBLISH

Commit all local changes

Prepare a patch for other developers

Push changes to origin

Make a version of Milestone

Branch

Switch to the BRANCH branch

Merge branch B1 into branch B2

Delete a branch

REVERT

Return to the last committed state

Revert the Last commit

Revert specific commit

Fix the last commit

Checkout the ID version of a file

SHOW

Files changed in working directory

Changes to tracked files

Changes between ID1 and ID2

Hisotry of changes

History of changes with the files changed

Who changed what and when in a file

A commit identified by ID

A specific file from a specific ID

All local branches

Search for patterns

master is the default development branch

origin is the default upstream repository

 HEAD is the current branch

流程图: