Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 590 Bytes

git_cheat_sheet_update.md

File metadata and controls

13 lines (12 loc) · 590 Bytes

git status

Gets the status of your index (which files you've changed or added/removed, but not yet committed).

git branch <branch_name>

Creates a new branch. Doesn't check it out yet.

git checkout <branch_name>

Checks out the given branch.

git fetch --prune

Gets all the updates from upstream and removes cached branches from your list of upstream branches.

git branch -d <branch_name>

Removes your local branch.

git branch -a

Gets information about all branches, upstream and local, and displays what you've checked out at the moment. Nice overall branching info.