Git is tool that can manage the version of your files for you.
Use git to manage a local folder for you.
In the artical, the local folder is /home/null/ManagedByGit, and the file in this folder is file.info.
Before we you do anything, you should let git know who you are.
git config --global user.name your_name_here
git config --global user.email your_email_here
First of all, we should build a git repository for this folder. To achieve this target,
1. cd into your folder
2. execute the following command
git init
At this time, you will find that there is a folder named .git is created.and then, the content of this folder looks like this:
Now, we take a snapshot for each file in this folder...
git add .
Commit with a message as a comment...
git commit -m useful-infomation-here
Create a copy as backup for this folder...
git clone ./.git /home/null/backup
If you want to know what's going on the files in this folder...
git log
Check the difference...
git show
If you want to down the soucre code by https, just take the following command as a reference.
git clone https://github.com/aptana/Pydev /home/null/pydev