Git can only recognize your changes of plain text files but not binary files.
- Asuming there is an text file
me.md in your folder.
Hi, my name is Jack.
I am learning git.
There are origin files and git will give it an ID(asuming it is aaaa).
2. If you change it to this:
Hi, my name is Jack.
I am learning git.
How are you ?
- Git will notice that you add a line to the file's third line.
- With your actions(will talk it later), git will store
a record to .git folder.
- Then git will return an ID (asuming it is
bbbb) to you and you can back up to any
timepoint any time.
- Then you change you file to this,
Hi, my name is Bob.
I am learning git.
How are you ?
you just change one word, but git is not so smart.
It will think you delete the first line and add a new line to it's header.Asuming is ID is cccc
- of course, you can add new file 'navy.png'
GIt will save those records, so that you can back up anytimes!
Git can only recognize your changes of plain text files but not binary files.
me.mdin your folder.There are origin files and git will give it an ID(asuming it is
aaaa).2. If you change it to this:
a record to
.gitfolder.bbbb) to you and you can back up to anytimepoint any time.
you just change one word, but git is not so smart.
It will think you delete the first line and add a new line to it's header.Asuming is ID is
ccccGIt will save those records, so that you can back up anytimes!