Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions lab-git
Submodule lab-git added at cb0d3a
55 changes: 46 additions & 9 deletions my-solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ Create a new directory called `git-lab/`. Then, navigate inside of that director
Copy and paste _the command(s)_ you used into the code block below.

```

commandlinepractice ls
code.js command.js pursuit
➜ commandlinepractice cd pursuit
➜ pursuit ls
labs unit-1
➜ pursuit cd labs
➜ labs
code .
git clone [email protected]:Andree52/lab-git.git
```

## 2
Expand All @@ -21,7 +29,7 @@ Initialize the directory as a git repository.
Copy and paste the _output_ of the command(s) you ran into the code block below.

```

cd ~
```

## 3
Expand All @@ -31,7 +39,10 @@ Check the current status of the git repository.
Copy and paste the _output_ of the command(s) you ran into the code block below.

```

pwd
ls
cd
git status
```

## 4
Expand All @@ -41,7 +52,7 @@ Create a new file called `readme.md`. Then stage that file.
Copy and paste _the command(s)_ you used into the code block below.

```

touch readme.md
```

## 5
Expand All @@ -51,7 +62,9 @@ Check the current status of the git repository.
Copy and paste the _output_ of the command(s) you ran into the code block below.

```

ls
cd lab-git
git status
```

## 6
Expand All @@ -66,7 +79,29 @@ Then, check the current status of the git repository.

Copy and paste the _output_ of the command(s) you ran into the code block below.

```
~ ls
10.4-watchList Documents Library Music Public practice.md
Desktop Downloads Movies Pictures commandlinepractice
➜ ~ cd commandlinepractice
➜ commandlinepractice ls
code.js command.js pursuit
➜ commandlinepractice cd pursuit
➜ pursuit ls
labs unit-1
➜ pursuit unit-1
➜ unit-1 ls
gettin-started-with-git
➜ unit-1 gettin-started-with-git
➜ gettin-started-with-git git:(main) ls
readme readme.md
➜ gettin-started-with-git git:(main) readme.cd
zsh: command not found: readme.cd
➜ gettin-started-with-git git:(main) ls
readme readme.md
➜ gettin-started-with-git git:(main) cd readme.md
cd: not a directory: readme.md
➜ gettin-started-with-git git:(main) code .```


```

Expand All @@ -77,7 +112,9 @@ Commit your changes and include a sensible commit message. Then, check your repo
Copy and paste _the command(s)_ you used into the code block below.

```

git add .
git commit -m "yeah yeah"
git push
```

## 8
Expand All @@ -87,7 +124,7 @@ Check the current status of the git repository.
Copy and paste the _output_ of the command(s) you ran into the code block below.

```

git status
```

## 9
Expand All @@ -97,5 +134,5 @@ Stage your changes and then make another commit with a sensible commit message.
Copy and paste _the command(s)_ you used into the code block below.

```

git commit -m "new quote"
```