The standard tool for Version Control of computer files
Terminology Cheat Sheet
Basic movement
Push, pull, fetch, commit, add, & reset
flowchart
direction LR
w[(working directory)]
s[(staged)]
l[(local repo)]
r[(remote repo)]
w-- add -->s
s-- reset -->w
s-- commit -->l
l-- push -->r
r-- pull -->w
r-- fetch -->l
Branch management
Branch, checkout, merge
git branch
- creates a new branchgit checkout
- switches between branches in the local repogit merge
- pull changes from one branch to another- fast-forward merge - is a merge from a branch back to main WHEN the main hasn’t been changed from the point the branch was made. Probably most of my merges.
fast-forward merge:
Source
- using it, and…
- Atlassian’s guide