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
26 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 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,040 points
47 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 in Data Analytics by anonymous
22 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 in Data Analytics by sindhu
14 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 25 in Data Analytics by anonymous
• 25,820 points
12 views
+13 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,380 points
147 views
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,400 points
156 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
28 views