-
Notifications
You must be signed in to change notification settings - Fork 19
Halyna R. #10
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
base: main
Are you sure you want to change the base?
Halyna R. #10
Changes from all commits
49962c3
d42831f
6e38a1a
8565e41
e92ac6f
0481d22
df436bf
60b9085
053f688
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,47 @@ | ||
| # Write your code here | ||
| #!/bin/bash | ||
| echo "Creating project..." | ||
| mkdir project | ||
| cd project | ||
| git init | ||
| touch README.md | ||
| mkdir resources | ||
| touch settings.conf | ||
| mkdir src | ||
| cd resources | ||
| touch "family picture.jpg" | ||
| touch icon.png | ||
| touch logo.png | ||
| cd .. | ||
| cd src | ||
| mkdir database | ||
| mkdir profile | ||
| touch program.java | ||
| cd .. | ||
| git add . | ||
| git commit -m "Initial commit" | ||
| git push | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This push is not asked for in the instructions. As it stands, it produces an error message because no remote repository has been defined: |
||
| sleep 3 | ||
| echo "Setup project..." | ||
| echo "Welcome to my project" > README.md | ||
| cd src | ||
| rm -r profile | ||
| cd .. | ||
| cd resources | ||
| rm "family picture.jpg" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, you have correctly used quotes for the file name containing a space. However, that file was not created. Hence, the error message: |
||
| cd .. | ||
| git add . | ||
| git commit -m "write welcome text to README, remove profile directory , remove family_picture.jpg" | ||
| git push | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the push |
||
| sleep 3 | ||
| cd resources | ||
| echo "Setup javascript..." | ||
| mv program.java program.js | ||
| echo "console.log('JavaScript works!');" > program.js | ||
| node program.js | ||
| cd .. | ||
| git add . | ||
| git commit -m "rename program.java to program.js , add log line to program.js" | ||
| git push | ||
| cd ~ | ||
| ls -la | ||
| echo "All done!" | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| halyna1995 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of cd-ing into the directory, you can also create/access files by using a path, e.g.: