Repository
Holds files and their versions
-remembers every committed change to every controlled files
Copy-modify-merge
Can look at new changes make them to new version so they have been merged
Git
-a framework for version control system workflows
-tracks changes to files and directories
-permits concurrent access
GitHub: popular services for repositories
VCS repository
Is a store of data and metadata
Push
Write into repo
Pull
Reading repo
-is actually two cmds fetch and merge (origin/master)
Git cycle
Commit
- commit is not the same as push
Git log
Gives list of snapshots (commits)
Git status
Reports of files need to be committed
Branch
-are pointers to certain commits
-master is the main branch
-origin is the remote repo
-git pull == git pull origin master
-git push == git push origin master
Ex) 18431a0
Git add
Results in a file/directory being staged for commit
Git ignore
* .o *.class
Git fetch
See changes
Git diff
Shows differences
-help
Helps with cmds