Question

In: Computer Science

1. Using git commands and terminology, briefly explain how changes to files go from a working...

1. Using git commands and terminology, briefly explain how changes to files go from a working directory to a remote repository and from remote repository to the working directory. Answers that properly use git commands to explain how changes to files go from the working directory to the remote repository and vice versa.

2. In your own words, briefly explain the different git "places"

Solutions

Expert Solution

1)

The working directory is where we have our source files under git control and the remote repository refers to the repository which the team members use in order to bring some new updates and changes on the project on GitHub. So while we make changes in the real project i.e. our working repository, we have to update the remote repository as well and vice versa.

To see what was changes in the remote repository use $git status.

To commit the changes i.e. edit or add new files in the working repository use $git add and then $git commit.

To see what changes were made use $git log.

To add the canges from the working directory to the remote repository use $git push.

There is a layer in between the working directory and the remote repository it is called the staging area. It is in this area where the changes are first stored or added when the user uses the $git add command. At this place the project and all the stuff is thoroughly checked as well.

It is after this stage thet one uses the $git commit command to push the changes to the remote repository on github.

2)

There are majorly three areas where we work on git. They are as under:

> Working Tree

> Staging Area

> Local Repository

The working tree is the area in git where one is currently working, it is that area where if the user make some changes and do not save them before closing he/she will loose all the changes that they have made tiil now. It is also called the untracked area of git.

The Staging area is one where github starts tracking the changes that have been made into the files. At this stage is when git starts saving those changes that have occured in the files. These saved changes will be reflected in the .git directory of the project.

The local repository includes everyhting that the user have in their .git directory. It is this area that saves everything that one has for their peoject uploaded on github, So, deleting it will make the user loose everything that they have, and if the project is no longer available in their working system they might loose it forever.


Related Solutions

Unix/Linux Turn in the following commands and any output from the commands. 1) ll to show the original 3 files
Unix/LinuxTurn in the following commands and any output from the commands.1) ll to show the original 3 files2) run the tar command to stuff three files3) ll to show the 'tar archive'4) mkdir newdir to create a new directory to unstuff the 'tar archive'
Explain, using the terminology and theories on how Michael Porter's strategies that can be employed to...
Explain, using the terminology and theories on how Michael Porter's strategies that can be employed to improve the U.S. health care system. Be sure to use words and concepts like free rider, scarcity, coarse, and demand.
What is "sampling bias"? Explain using proper terminology and craft your example to explain how it...
What is "sampling bias"? Explain using proper terminology and craft your example to explain how it can affect the outcome of a statistical study. This should be several paragraphs long.
Using appropriate terminology, explain how homologous structures such as the limbs of humans, cats, whales and...
Using appropriate terminology, explain how homologous structures such as the limbs of humans, cats, whales and bats provide evidence for evolutionary theory.
⦁ Briefly explain how the following changes in family patterns and structures will impact on a...
⦁ Briefly explain how the following changes in family patterns and structures will impact on a person with care and support needs. Guidance: Each response must be no more than 100 words 1.Modern families often have fewer or no children 2.Modern families start families much later in life than before
1. What is the main goal in decision analyses. Be specific and complete using terminology from...
1. What is the main goal in decision analyses. Be specific and complete using terminology from the course. 2. Why perform sensitivity analysis? Of what use is sensitivity analysis where good probability estimates are difficult to obtain? *Please use different answers from the chegg because my friend already use it.
Go to the Files section and download the AFE_Test file from the Datasets folder. We are...
Go to the Files section and download the AFE_Test file from the Datasets folder. We are interested in a one­tail test described in the following fashion: Ho: u < or = to 200 CFM; H1: u > 200 CFM. At 5% significance level, we can reject the null hypothesis given the sample information in AFE_Test1. we can reject the null hypothesis given the sample information in AFE_Test2. we cannot reject the null hypothesis. we can reject the null hypothesis given...
Q13: Using a short, written paragraph that includes relevant economic terminology, explain why AND how the...
Q13: Using a short, written paragraph that includes relevant economic terminology, explain why AND how the market is affected by the event(s). Be clear and as detailed as possible. Illustrate each market before and after the event(s) using a single, properly-labelled demand and supply graph. Only one graph is necessary for part d). Summarize the impacts of the event(s) on the market by completing the table at the end of the question. In each cell of the table, insert one...
Q13: Using a short, written paragraph that includes relevant economic terminology, explain why AND how the...
Q13: Using a short, written paragraph that includes relevant economic terminology, explain why AND how the market is affected by the event(s). Be clear and as detailed as possible. Illustrate each market before and after the event(s) using a single, properly-labelled demand and supply graph. Only one graph is necessary for part d). Summarize the impacts of the event(s) on the market by completing the table at the end of the question. In each cell of the table, insert one...
Modern Physics Written Response - Supernova Nucleosynthesis 1. Explain/Define the topic. [Explain using simple terminology and...
Modern Physics Written Response - Supernova Nucleosynthesis 1. Explain/Define the topic. [Explain using simple terminology and logic, don't expect the reader already knows and understands everything about it] 2. Explain the Physics behind it. [Laws/Principles/Equations/Assumptions/Discovery] 3. Example Problem and/or Derivation. 4. Any Applications of the Physics described?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT