Git - Part 1
Git - Part 1
Basic
Version control system ● Version control systems are a category of
software tools that help a software team
manage changes to source code over time.
● Ability to have unlimited number of developers
working on the same code base.
● Easily revert back your files if something
happened.
Centralized VCS
changes ●
○ git status or git status –s (short version)
To see what is modified but unstaged:
○ git diff
● To see a list of staged changes:
○ git diff --cached
● To see a log of all changes in your local repo:
○ git log or git log --oneline (shorter version)
■ 1677b2d Edited first line of readme
■ 258efa7 Added line to readme
■ 0e52da7 Initial commit
○ git log -5 (to show only the 5 most recent
updates), etc.
Merge conflicts
Interaction w/ remote ●
●
Push your local changes to the remote repo.
Pull from remote repo to get most recent