Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This exercise is designed to measure your understanding of the file status lifecycle in git. Please frame your answers in the context of the following

image text in transcribedimage text in transcribedimage text in transcribed

This exercise is designed to measure your understanding of the file status lifecycle in git. Please frame your answers in the context of the following lifecycle based on your interaction with the repository as specified below: Untracked Unmodified Modified Staged Add the file Edit the file Stage the file Remove the file Commit figure courtesy of the Pro Git book by Scott Chacon Parts (a) through (f) should be done in sequence. In other words, when you get to part (f), you should assume that you already executed the earlier commands (a), (b), -, (e). You must use the terminalogy specified in the lifecycle shown above, for example the output of git status is not accepted as a valid answer. For the purposes of this question, you can assume you have full access (i.e., read/write) to the repository Part (a): What is the status of README.md (which was already present in the repo) after performing the following operations: #Change directory to the home directory #Clone the SampleRepo repository git clone git@github.com:usc-csci104-spring2020/SampleRepo.git #Change directory into the local copy of SampleRepo cd SampleRepo Part (b): What is the status of README.md and fun_problem.txt after performing the following operations: #Create a new empty file named fun_problem. txt touch fun_problem.txt #List files #Append a line to the end of README.md echo "Markdown is easy" >> README.md Part (c): What is the status of README.md and fun_problem.txt after performing the following operation: git add README.md fun_problem. txt Part (d): What is the status of README.md and fun_problem.txt after performing the following operations: git commit -m "My opinion on markdown" echo "Markdown is too easy" >> README.md echo "So far, so good" >> fun_problem. txt Part (e): What is the status of README.md and fun_problem.txt after performing the following operations: git add README.md git checkout -- fun_problem. txt Also, what are the contents of fun_problem.txt ? Why? Part (f): What is the status of README.md after performing the following operation: echo "Fancy git move" >> README.md Explain why this status was reached

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions