-
Notifications
You must be signed in to change notification settings - Fork 19
Mohamad Bader AA #2
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,34 @@ | ||
| # Write your code here | ||
| echo "Creating project…" | ||
| mkdir 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. In shell scripting, using semicolons ath the end of a line is not necessary, but it is possible to use them of course. |
||
| cd project | ||
| git init | ||
| mkdir resources src | ||
| touch settings.conf | ||
| cd resources | ||
| touch "family picture.jpg" icon.png logo.png | ||
| cd ../src | ||
| mkdir database profile | ||
| touch program.java | ||
| git add -A | ||
| git commit -m "initial 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. As of this point you're still in |
||
| sleep 3 | ||
| echo "Setup projet..." | ||
| echo "Welcome to my project" >README.md | ||
|
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. As of this point you're still in |
||
| cd src | ||
|
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. As you are already in |
||
| rmdir profile | ||
| cd ../resources | ||
| rm "family picture.jpg" | ||
| git add -A | ||
| git commit -m "second commit" -m "removed family picture Woopsie😁 and my personal profile" | ||
|
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. Nice job on a descriptive commit message. But a signle message needs to be created. You can remove the first one. |
||
| sleep 3 | ||
| ls | ||
| echo "Setup javascript…" | ||
| cd ../src | ||
| git mv program.java program.js | ||
| echo 'console.log("JavaScript Works!");' >program.js | ||
| node program.js | ||
| git add -A | ||
| git commit -m "third commit" -m "java script works now/ renamed program and added 1 line of code" | ||
|
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. Nice job on a descriptive commit message. But a signle message needs to be created. You can remove the first one. |
||
| cd ~ | ||
| ls | ||
| echo 'All done!' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| <paste here your github username> | ||
| <noneeeed> |
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.