i have created a file g.txt in master, and created a branch named as lucky, now without commit the g.txt in master, i am able to access, modified the g.txt file in branch lucky.
so why their is need of commit in git and what is difference b/w commited file and uncommited file.
i also restart the system and able to see same g.txt in master and lucky branch, and modified the same