Skip to main content

The Big Picture

The 3 (+1) "places" you need to keep in your head:

Working Directory → Staging Area (Index) → Local Repo (.git) → Remote (GitLab)
(your files, (what goes into (the commit (the "server",
what you the next commit) history on e.g. GitLab)
see) your machine)
PlaceWhat it isHow SourceTree shows it
Working DirectoryYour files as you see/edit them right now"Unstaged files"
Staging Area (Index)The "list" of what goes into the next commit"Staged files"
Local RepositoryThe commit history, stored locally in the .git folderThe graph in the main window
Remote RepositoryThe copy on GitLab (server)REMOTES in the left menu

The basic workflow is:

Change files → Stage → Commit (locally) → Push (to GitLab) (someone else does a) Pull