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
43 changes: 42 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# Write your code here
echo "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
git init
Copy link

@mnvacym mnvacym Jan 18, 2026

Choose a reason for hiding this comment

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

The git repository needs to be created inside the folder project. Currently it creates the git repository inside the directory where you run this bash script.

3. Create new git repository inside the folder “project”

touch project/README.md
mkdir project/resources
cd project/resources
touch "family picture.jpg"
touch icon.png
touch logo.png
cd ../
touch settings.conf
mkdir src
cd src
mkdir database
mkdir profile
touch program.java
cd ../
git add .
git commit -m "initial commit"
sleep 3
echo "Setup project…"
echo "Welcome to my project" >> README.md
cd src
rmdir profile
cd ../
cd resources
rm "family picture.jpg"
cd ../
git add .
git commit -m "second commit"
Copy link

@mnvacym mnvacym Jan 18, 2026

Choose a reason for hiding this comment

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

The commit message needs to be descriptive:

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

sleep 3
ls resources
echo "Setup javascript…"
cd src
mv program.java program.js
echo "console.log('JavaScript works!');" >> program.js
node program.js
cd ../
git add .
git commit -m "third commit"
Copy link

@mnvacym mnvacym Jan 18, 2026

Choose a reason for hiding this comment

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

Same here, the commit message needs to be descriptive:

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

ls $HOME
echo "All done!"
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>
atiqanaseer