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'
What are the UNIX commands for each of these steps? 1. Copy all of the files...
What are the UNIX commands for each of these steps? 1. Copy all of the files in your Files directory to the Backup directory. 2. Create an ITE130 directory in the Classes Directory 3. Move all the ITE 130 files from the backup directory to the ITE130 directory. 4. Redirect echo step 19 to mark this step in the lab3.txt file 5. Display all of the directories and sub-directories including files so I can verify you completed all the above...
What are the UNIX commands for each of these steps? 1. Delete all the files in...
What are the UNIX commands for each of these steps? 1. Delete all the files in the Classes and Backup directories only. 2. Redirect echo step 23 to mark this step in the lab3.txt file 3. Display all of the directories and sub-directories including files so I can verify you completed all the steps correctly. 4. Repeat the above step and redirect the output to the file lab3.txt without erasing what is already in it! 5. Redirect echo step 26...
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.
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT