CS-I Journal J1006: Source Control

Name: Mukesh Kalikaya

Date: 25 Aug 2022

I received assistance from: No one

I assisted: No one

Navigation

BACK TO JOURNALS

CSS File

Previous Journal

Next Journal

Section 1

Question 1: What is Git communicating to you?

The git log command displays all of the commits in a repository's history.

Question 2: What do you see that is common between this git log and the previous git commit?

The thing that is in common between git log and git commit is it text that was added.

Question 3: Why do you think this is?

Both of the commands deal with the history and changes made to the file.

Section 2

Question 1: What do you notice about file1.txt and file2.txt? How are they displayed in git status?

When the command git status was ran, it says that file1.txt and file2.txt have to be either updated or to be included what will be committed.

Question 2: Are they both displayed in the same section? If not, why not?

Both of them are not displayed in the same section because file2.txt was newly created and it has not been added to the commit yet. While file1.txt was added to the commit after it was created. But the new changes that were made were not updated so file1.txt is in the update section and file2.txt is in the include section.

Section 3

Question 1: What do you notice about file1.txt and file2.txt? How are they displayed in git status?

Now that both of the files have either been updated or included into the commit, it shows that file1.txt was modified and file2.txt is a new file when the command git status was ran.

Question 2: Compare and Contrast the manner in which the two files are displayed.

When the command git status was ran, both of the files are in the same section but with different changes. file1.txt was modified and updated to commit while file2.txt was modified and then added to commit.

Section 4

Question 1: How many files are listed as having been changed?

After the text was displayed due to the command git diff --cached, there were only 2 files that are listed as having been changed. Those are the file1.txt and file2.txt.

Question 2: What are the specific differences listed for each file? In what color is the difference displayed?

For file1.txt, the change/differnece listed was "This is a new line." For file2.txt, the change/difference listed was "This is a new line in a new file." The changes are being displayed in the color green.

Section 5

Question 1: Execute the commands. What does Git tell you has changed? Why?

Git told me nothing/the same thing that it told me when I ran the same command in Section 4 because no changes were made to any of the files.

What challenges did I encounter?

I encountered quite a lot of challenges. I had no experience using git and I couldn't understand what the commands were saying and what they meant. I later got some help by searching about git and learning what the commands mean.

How could this experience be improved?

This experience could have been improved if I didn't have the major obstacle of not knowing git and its functions. If I knew what git was, my experience would have been a lot better and I would have experienced no issues.

Free Reflection: How has what I've learned affected my thinking?

I have learned that creating/using git is a good idea because if at any point you make a mistake, you don't understand what you are doing, or are just stuck, you can just go back to a point where you knew what you were doing and start from there.