Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 31 additions & 34 deletions activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ Run the following commands.
1. What does `git help` do?

```

git help gives you commands and tell you what they do

```

2. What does `-ag` cause `git help` to do?

```

git help -ag list available subcommands and some concept guides.


```
Expand All @@ -91,15 +91,14 @@ consider changing this configuration before you walk away.

```


These commands identifies you so that whatever changes you make on the repo will be published with your name and email on every commit.

```

2. What is the purpose of `--global`?

```


the purpose of --global is to connect your github and terminal

```

Expand All @@ -117,15 +116,15 @@ cd first_project
display a hidden file?

```

dir /a

```

2. Run this command to show the hidden files in the current directory. Are there any?

```


no there isn't

```

Expand All @@ -140,7 +139,7 @@ cd first_project

```


nothing

```

Expand All @@ -149,7 +148,7 @@ cd first_project

```


I believe the directory won't be able to be found so it would cause errors

```

Expand All @@ -159,7 +158,7 @@ cd first_project
if the project is being managed using Git?

```

I would use git status to see if the project was made with git


```
Expand All @@ -179,8 +178,7 @@ Run `git status` before and after each of these commands.
1. What kind of information does `git status` report?

```


This command will show the current status of the project, including information about untracked and modified files.

```

Expand All @@ -189,14 +187,13 @@ Run `git status` before and after each of these commands.
```



```

3. What does `git commit -m "Add our names."` do?

```


This command commits all changes

```

Expand Down Expand Up @@ -271,7 +268,7 @@ Run the following commands:
**Staged**

```

name.txt


```
Expand All @@ -287,16 +284,17 @@ Run the following commands:
**Untracked**

```


birthdays.txt
foods.txt
movies.txt

```

1. If you run `git commit` what changes will be committed (***don't do
it***)?

```

it will save the changes


```
Expand All @@ -305,15 +303,15 @@ Run the following commands:

```


git add

```

3. What command do you run to unstage changes?

```


git reset

```

Expand All @@ -325,16 +323,15 @@ Run the following commands:
1. What does `git diff` display?

```

this command displays the differences, or changes, between two sets of code


```

2. What does `git diff --cached` display?

```


this command displays the differences between the files that have been staged

```

Expand All @@ -343,7 +340,7 @@ Run the following commands:
confirm they worked.

```

it worked


```
Expand All @@ -354,7 +351,7 @@ Run the following commands:

```


I think that the git status updates all changes that are made to the files

```

Expand All @@ -363,15 +360,15 @@ Run the following commands:

```


It shows what file is deleted

```

6. Rename `movies.txt` to `last-movies`. Run `git status`. Observe
and explain.

```

It updated the name change


```
Expand All @@ -391,7 +388,7 @@ Run the following commands:

```


It holds the set of changes that are marked for the next commit

```

Expand All @@ -400,7 +397,7 @@ Run the following commands:

```


The staging area provides an opportunity to review and validate your changes before they become part of the permanent history.

```

Expand All @@ -419,7 +416,7 @@ Run the following commands:

```


it undoes the last commit while keeping the changes from that commit in the staging area.

```

Expand All @@ -435,30 +432,30 @@ Run the following commands:
1. What does `git reset --hard "HEAD^"`` `do?

```

it used to erase the last commit and all changes associated with it, both staged and unstaged.


```

2. What is the difference between `--hard` and `--soft`?

```

hard discards changes while soft perserves changes


```

3. What do you think `HEAD` means?

```

I think it shows latest commit

```

4. What do you think `HEAD^` means?

```

I think it shows the last commit that was made.

```

Expand Down