- A system that keeps records of your changes
- Allows for collaborative development
- Allows you to know who made what changes and when
- Allows you to revert any changes and go back to a previous state
2016-11-16
The simplest use of git:
my_working_dir/ <== the working directory |-.git/ <== the local repository | |- ...files <== files/folder git uses to capture the current | and previous states of the working directory |- file1 \ |- dir1/ | <== files/folders in the working directory | |- file2 /
Files in your working directory can be in four different states in relation to the current commit
You learn linux and do it on the command line:
$ mkdir my_project $ cd my_project $ git init $ echo "# README" > README.md $ git add README.md $ git commit -m 'Added README.md file' $ echo "This is my fabulous project" >> README.md $ git add README.md $ git commit -m 'Updated README.md' README.md
or using a…