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 18, 2017 in Data Analytics by Mittal
385 views

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 18, 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
573 views
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
6,063 views
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
376 views
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 26, 2019 in Data Analytics by anonymous
• 33,030 points
502 views
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,520 views
+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 4, 2018 in Data Analytics by Ali
• 11,360 points
2,096 views
0 votes
1 answer

Shut down the VM and restarted

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

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
596 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP