-
Notifications
You must be signed in to change notification settings - Fork 19
Diana Chukhrai #4
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?
Changes from all commits
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,26 @@ | ||
| # Write your code here | ||
| # Creating project... | ||
| mkdir project | ||
| cd project | ||
| git init | ||
| touch README.md | ||
| touch settings.conf | ||
| mkdir resources | ||
| mkdir src | ||
| mkdir src/database | ||
| mkdir src/profile | ||
| touch resources/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. The file name needs to be |
||
| touch resources/icon.png | ||
| touch resources/logo.png | ||
| touch src/program.java | ||
| echo "Setup project..." | ||
|
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. After creating files and folders, you need to create the first commit wit the message
|
||
| echo "Welcome to my project" > README.md | ||
| rm -r src/profile | ||
| rm resources/family_picture.jpg | ||
| echo "Setup javascript…" | ||
|
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. After removing
|
||
| mv src/program.java src/program.js | ||
| echo "console.log('JavaScript works!');" > src/program.js | ||
| node src/program.js | ||
| git add . | ||
| git commit -m "third commit" | ||
|
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. Commit message needs to be descriptive:
|
||
| ls ~ | ||
| echo "All done" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Creating project... | ||
|
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 file is not needed. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| <paste here your github username> | ||
| <dianadenwik> |
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.
Usually it is a good practice to include
#!/bin/bashor#!/usr/bin/env bashline at the beginning of a shell script file.