Git - commited file and uncommited file

0 votes
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
16 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,000 points
33 views
0 votes
1 answer

R query and Data Science

Dear Deepika, Hope you are doing great. You can ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
16 views
0 votes
2 answers

"Train" and "Test" sets in Data Science

Normally to perform supervised learning you need ...READ MORE

answered Aug 2, 2018 in Data Analytics by ANMOL
• 3,620 points
25 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,550 points
65 views
+13 votes
2 answers
0 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
• 10,290 points
104 views
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
16 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.