Skip to content
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
27 changes: 26 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
# Write your code here
# Creating project...
Copy link

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/bash or #!/usr/bin/env bash line at the beginning of a shell script file.

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name needs to be family picture.jpg (with a space). So you can make use of quotes (").

touch resources/icon.png
touch resources/logo.png
touch src/program.java
echo "Setup project..."
Copy link

Choose a reason for hiding this comment

The 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 "initial commit":

5. Commit the changes to git with the message “initial commit".

echo "Welcome to my project" > README.md
rm -r src/profile
rm resources/family_picture.jpg
echo "Setup javascript…"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After removing family picture.jpg file, you need to create the second commit with a descriptive message:

11. Create a second commit with the new changes. Provide a descriptive message.

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"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message needs to be descriptive:

18. Create a third commit with the last changes. Provide a descriptive message.

ls ~
echo "All done"
2 changes: 2 additions & 0 deletions task-1/setup.sh.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Creating project...
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not needed.


2 changes: 1 addition & 1 deletion task-2/github-username.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<paste here your github username>
<dianadenwik>