Git Cheat Sheet

Git Quick Reference
Adding the ShortCut:

Getting help:

Repository creation:

File operations:

Working tree:

Examining History:

Remote repositories – remotes:


Exporting and importing:


File status flags:
M modified File has been modified
C copy-edit File has been copied and modified
R rename-edit File has been renamed and modified
A added File has been added
D deleted File has been deleted
U unmerged File has conflicts after a merge

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up

Step 4. Push the result of the merge to Git


Tagged with:

Leave a Reply

Your email address will not be published. Required fields are marked *