Git - commited file and uncommited file

+1 vote
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
Dec 17, 2017 in Data Analytics by Mittal

1 answer to this question.

0 votes

Hi Mittal,

Git commit is necessary for pushing files to the git remote repo. If you don't commit then you won't be able to push it to github repo. Moreover, git commit is also helpful to recover files if you accidentally delete files from the local repo or remote repo.

For more information please visit the below links:


I hope this helps you. Feel free to contact us in case of any issue.

answered Dec 17, 2017 by Sudhir
• 1,610 points

Related Questions In Data Analytics

0 votes
1 answer

Select table name and corresponding columns frim the sql file - R

Try something like this: library(stringr) library(dplyr) library(tidyr) text <- readLines("file.txt") dataFrame <- ...READ MORE

answered Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
0 votes
1 answer

How to import and clean a text file into dataframe in R?

You can use readLines() or read.table() depending ...READ MORE

answered Jul 16, 2019 in Data Analytics by anonymous
0 votes
1 answer

Export the updated or manipulated dataframe or result as csv and excel file

Hi, Karthik. Check it out how to write ...READ MORE

answered Sep 10, 2019 in Data Analytics by sindhu
0 votes
1 answer

How to use plyr and dplyr functions inside one source file?

Hi, Lakshmi, Use dplyr::function( ) or plyr::function( ). Since ...READ MORE

answered Aug 25, 2019 in Data Analytics by anonymous
• 33,010 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
2 answers

What is difference between Distributed search head and Search head cluster?

 A distributed environment describes the separation of ...READ MORE

answered Dec 3, 2018 in Data Analytics by Ali
• 11,330 points
0 votes
1 answer

Shut down the VM and restarted

Dear Raghu, Please let us know are you ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points