0
What is the default status of an untouched file in GIT?
I was studying git. They mention three states of files: modified, staged and commited. Now I am not able to understand one thing. Suppose I am working with 5 files in my current working directory. I edit 3 files and mark them staged and commit them to store the next snapshot in the database. What was the status of the two untouched files. Do I have to mark all files as commited? NOTE I DON'T HAVE ANY KNOWLEDGE ABOUT GIT. I HAVE JUST STUDIED AN INTRODUCTION.
1 Answer
0
No need. As the files stay in the same state even if you 'git add *' them git just ignores the unchanged ones.
Git just creates kind of pointers to states of objects, if one stays, the pointer doesn't need updating either.