Open bitfishxyz opened 5 years ago
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.
me.md
Hi, my name is Jack. I am learning git.
There are origin files and git will give it an ID(asuming it is aaaa).
aaaa
If you change it to this:
Hi, my name is Jack. I am learning git. How are you ?
.git
bbbb
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
cccc
of course, you can add new file 'navy.png'
GIt will save those records, so that you can back up anytimes!
this is a diagram:
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.There are origin files and git will give it an ID(asuming it is
aaaa
).If you change it to this:
.git
folder.bbbb
) to you and you can back up to any timepoint any time.Then you change you file to this,
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!