Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
e2f21b0
networking solution added
mirzanikhath Feb 16, 2025
e8c3ccf
added task1 solution
mirzanikhath Apr 1, 2025
03999fe
Merge branch 'master' of https://github.com/mirzanikhath/90DaysOfDevOps
mirzanikhath Apr 1, 2025
f8fe987
added task 2 in solutions
mirzanikhath Apr 2, 2025
a4b070a
added task 3 to the solutions
mirzanikhath Apr 2, 2025
4b6c852
added task 4 to the solution
mirzanikhath Apr 2, 2025
bd06319
Update task4.md
mirzanikhath Apr 2, 2025
0f00827
added 2 tasks of linux
mirzanikhath Apr 4, 2025
a80a4b0
Merge branch 'master' of https://github.com/mirzanikhath/90DaysOfDevOps
mirzanikhath Apr 4, 2025
630caf2
Update task2.md
mirzanikhath Apr 4, 2025
f6ec719
Update task1.md
mirzanikhath Apr 4, 2025
fc27e45
Update task1.md
mirzanikhath Apr 4, 2025
70deb2d
added task3 to solutions
mirzanikhath Apr 5, 2025
5086e36
added task 4 to solutions
mirzanikhath Apr 7, 2025
d4bf418
added task5 to solutions
mirzanikhath Apr 11, 2025
08c8db6
added task 6 in solutions
mirzanikhath Apr 11, 2025
c823b89
added task 1 to solutions
mirzanikhath Apr 11, 2025
c4c1550
updated task 1 of solutions
mirzanikhath Apr 11, 2025
9db334a
Merge branch 'LondheShubham153:master' into master
mirzanikhath May 26, 2025
6c4070b
added a new tast
mirzanikhath Jun 17, 2025
9b37683
made some changes
mirzanikhath Jun 18, 2025
519d52a
made some changes
mirzanikhath Jun 18, 2025
2758a2b
added part 5 of task 1
mirzanikhath Jun 18, 2025
d391cfd
Update task1.md
mirzanikhath Jun 18, 2025
898c1d4
Update task1.md
mirzanikhath Jun 18, 2025
8b3fdfc
updated task 1.md
mirzanikhath Jun 18, 2025
a193ecf
Update task1.md
mirzanikhath Jun 18, 2025
2c656e6
added task 2 for shell scripting
mirzanikhath Jun 18, 2025
c02bd79
updated task 2 .md
mirzanikhath Jun 18, 2025
894fa70
Update task1.md
mirzanikhath Jun 18, 2025
7c4645d
created task1.md
mirzanikhath Jun 19, 2025
a49d48d
Update task1.md
mirzanikhath Jun 19, 2025
9a7e8cd
added documentation
mirzanikhath Jun 19, 2025
20198b5
Update task1.md
mirzanikhath Jun 19, 2025
93157f9
updated task.md
mirzanikhath Jun 19, 2025
ae03245
Update task1.md
mirzanikhath Jun 19, 2025
c0804ad
initial commit: add info.txt with introductory content
mirzanikhath Jun 19, 2025
dc62c74
updated task2.md
mirzanikhath Jun 19, 2025
7d5f5b9
Update task2.md
mirzanikhath Jun 19, 2025
a3e6714
Merge branch 'master' of https://github.com/mirzanikhath/90DaysOfDevOps
mirzanikhath Jun 20, 2025
d46cb3c
added task3 .md
mirzanikhath Jun 20, 2025
2d57f50
Merge branch 'master' of https://github.com/mirzanikhath/90DaysOfDevOps
mirzanikhath Jun 20, 2025
691beda
Update task3.md
mirzanikhath Jun 20, 2025
34b6e6a
added task 4
mirzanikhath Jun 20, 2025
3861490
Update task4.md
mirzanikhath Jun 20, 2025
2a2f699
Modified the info.txt
mirzanikhath Jun 20, 2025
cc7d7b0
added task5.md
mirzanikhath Jun 20, 2025
a958183
Update task5.md
mirzanikhath Jun 20, 2025
0291085
Merge pull request #2 from mirzanikhath/feature-update
mirzanikhath Jun 20, 2025
17e1eaf
Update task5.md
mirzanikhath Jun 20, 2025
7542e91
Update task5.md
mirzanikhath Jun 20, 2025
e2890af
Updated task5.md
mirzanikhath Jun 20, 2025
8176f50
added new task 6.md
mirzanikhath Jun 23, 2025
232e825
added task 1
mirzanikhath Jun 23, 2025
7d2c510
Update taks1.md
mirzanikhath Jun 23, 2025
b6fc8d0
updated task1.md
mirzanikhath Jun 30, 2025
732a412
deleted
mirzanikhath Jun 30, 2025
89e462b
added task2.md
mirzanikhath Jun 30, 2025
dcb7b3f
updated task2.md
mirzanikhath Jun 30, 2025
4ddaff0
Update task2.md
mirzanikhath Jun 30, 2025
5012d18
added task3.md
mirzanikhath Jun 30, 2025
7da15ff
Update task3.md
mirzanikhath Jun 30, 2025
33238ad
Update task3.md
mirzanikhath Jun 30, 2025
6f6ce2f
updated task3.md
mirzanikhath Jun 30, 2025
f01869b
added task4.md
mirzanikhath Jun 30, 2025
1c204c5
Update task4.md
mirzanikhath Jun 30, 2025
8b90a7f
added task5.md
mirzanikhath Jul 1, 2025
619953e
Update task5.md
mirzanikhath Jul 1, 2025
d46007a
updated task5.md
mirzanikhath Jul 1, 2025
00ed7cf
added task6.md
mirzanikhath Jul 1, 2025
d7d55d4
Update 2025/git/02_Git_and_Github_Advanced/solutions.md/task6.md
mirzanikhath Jul 1, 2025
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
9 changes: 9 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/Week-4-challenge/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Hi Myname is Mirza Nikhath Sultana

I am a post graduate student in statistics right now i am growing my career in DevOps field and learned many DevOps tools

Linux, GitHub , Shell Scripting , Terraform etc...

i am looking forward for a job as DevOps Engineer .

I am so excited to share that i am moving forward and performing my skills better while doing hands on practice on the devops tools like git hub and I am personally enjoying it.
88 changes: 88 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# WEEK 4 :- GIT AND GIT HUB (BASICS)

# GIT:
Git is the version control system a tool that tracks changes to files over time. It's commonly used by developers to manage source code.

# Concepts of Git :
- Repository: A directory that contains projects files and .git folder to track version history .
- Commit :A snapshot of your project at a specific point of time .
- Branch : A parallel version of repository useful for experimenting without effecting the main code.
- Merge : Combines changes from one branch to another branch.
- Clone: Git clone copies the remote repository to our local machine .
- Push: sends your local changes to a remote git repository
- Pull : Fetches your remote repository changes to your local repository .

# GITHUB:
GitHub is a web based platform that hosts Git repositories online. It allows collaboration, version tracking and project management for Git-based projects.

# Features of GitHub:
- Remote hosting for git repositories .
- Collaboration tools like issues, pull requests, and discussions .
- Open source contribution.
- CI/CD integration with tools like GitHub Actions .
- project management .

Some basic git commands :

- To initialize Git repository:

[command : git init]

- To clone github repository in your local machine :

[command: git clone <url of repo>]

- To see the changes made currently :

[comand: git status ]

- To stage changes for commit :

[command: git add .]

- To commit the changes made :

[command : git commit -m "commit message"]

- To push changes to GitHub remote repository :

[command: git push]

- To pull changes from GitHub remote repository :

[command : git pull ]

- To list all the branches :

[ command: git branch]

- To create and switch to a new branch :

[command: git checkout -b dev]

- To merge the two branche or dev branch in current branch :

[command : git merge dev ]

# TASK 1: FORK AND CLONE THE REPOSITORY

1- Forked the repository :

![Screenshot 2025-06-19 144258](https://github.com/user-attachments/assets/32983428-f032-40ae-affa-77dcaf128f12)

2- Clone the forked repository :


![Screenshot 2025-06-19 145950](https://github.com/user-attachments/assets/7457b6e0-3c05-410b-9ec9-31050f63ef57)

successfully cloned the repository


![Screenshot 2025-06-19 150048](https://github.com/user-attachments/assets/c8719c9f-092b-4cbb-84f4-38f1e27e2cfa)

3- change directory into cloned repository :


![Screenshot 2025-06-19 153316](https://github.com/user-attachments/assets/13601b03-8a65-4609-b2cb-b755d09e54db)


34 changes: 34 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# TASK 2:- INITIALIZE A LOCAL REPOSITORY AND CREATE A FILE

1- Set Up Your Challenge Directory:
- Inside the cloned repository, create a new directory for this challenge:

command : mkdir Week-4-challenge
command : cd Week-4-challenge
![Screenshot 2025-06-19 154149](https://github.com/user-attachments/assets/67d0679b-d3b0-4b13-a7a2-1e6898909f45)


2- Create a File inside folder Week-4-challenge :
- Create a file named info.txt and add some initial content (for example, your name and a brief introduction).

command : touch info.txt
![Screenshot 2025-06-19 154450](https://github.com/user-attachments/assets/9ccc4f1e-b7ba-46c7-804b-a0dd3901c299)


3- Stage and commit your file :
- Stage the file

command : git add ./

![Screenshot 2025-06-19 155029](https://github.com/user-attachments/assets/a86ba22d-389b-44d5-8869-1a1e2de17ca1)



- commit the file with descriptive message :

command : git commit -m "Initial commit: Add info.txt with introductory content"
![Screenshot 2025-06-19 160137](https://github.com/user-attachments/assets/cec065bf-9d9b-4958-b79d-fb93d2ea55af)




46 changes: 46 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Task 3: Configure Remote URL with PAT and Push/Pull

- Configuring remote URL using PAT(personal access token)

command: git remote add origin https://<your-username>:<your-PAT>@github.com/<your-username>/90DaysOfDevOps.git

In the above command i have changed it as

command : git remote add origin https://mirzanikhath:<my PAT>@github.com/mirzanikhath/90DaysOfDevOps.git

But it shows Origin already exists.then i used the below command to set the URL

command : git remote set-url origin https://mirzanikhath:<myPAT>@github.com/mirzanikhath/90DaysOfDevOps.git

Comment on lines +5 to +14
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Do not embed Personal Access Tokens directly in remote URLs
Storing the PAT in plain text leaks credentials via shell history, screenshots, and .git/config. Recommend using Git credential helpers or environment variables.

-https://<user>:<PAT>@github.com/…
+https://github.com/…   # then authenticate via credential helper (`git config --global credential.helper store/cache/osxkeychain`)

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~7-~7: Possible missing comma found.
Context: ...rname>/90DaysOfDevOps.git In the above command i have changed it as command ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~7-~7: Did you mean “I”?
Context: ...0DaysOfDevOps.git In the above command i have changed it as command : ...

(I_LOWERCASE_PREMIUM)


[uncategorized] ~11-~11: A punctuation mark might be missing here.
Context: ... But it shows Origin already exists.then i used the below command to set the URL ...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

🤖 Prompt for AI Agents
In 2025/git/01_Git_and_Github_Basics/solutions.md/task3.md around lines 5 to 14,
the code embeds the Personal Access Token (PAT) directly in the Git remote URL,
which exposes credentials in plain text. To fix this, remove the PAT from the
URL and configure Git to use credential helpers or environment variables for
authentication instead. This prevents sensitive information from being stored in
shell history or Git config files.

![Screenshot 2025-06-20 122752](https://github.com/user-attachments/assets/c7f32554-3c67-460d-ac1e-be4f06fef259)

- Pushing my Commit to Remote:

command : git push -u origin main

![Screenshot 2025-06-20 124206](https://github.com/user-attachments/assets/98b1fc86-4c30-451c-b934-714eaac1bc3b)



The above image shows my terminal where I'm trying to push the code to remote GitHub repository, but running into an issue and here's the breakdown how i solved it step by step

when i run the command of git push

command : git push -u origin master

I got an error like

error: failed to push some refs to .....
hint : Updates were rejected because the tip of my current branch is behind its remote counterpart .

Which means Git is refusing to pysh because the localk master branch is behind the remote master branch.So i have done pulling the code first to sync the changes .

![Screenshot 2025-06-20 142629](https://github.com/user-attachments/assets/18097f02-900d-4e46-bc03-18f59a2a9ca1)



Now when I run git pull command the error occured as the changes need to be made in both local and remote git repository so I used rebase command here , which uses merge startegy to make changes both in local and remote repository .

command : git config pull.rebase false

After running this command it finally pulled and pushed the code to github.
11 changes: 11 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Task 4: Explore Your Commit History

- View the commit history :

To view the commit history we use git log command to check the latest commit made to the branch

command : git log

The below image shows the latest commit made by me on the master branch

![Screenshot 2025-06-20 144343](https://github.com/user-attachments/assets/3a94e7e5-8bcf-4379-b51f-0afe8aae9b6f)
51 changes: 51 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Task 5: Advanced Branching and Switching

- Created a new branch feature-update and switched to that branch by using

command : git checkout -b feature-update

![Screenshot 2025-06-20 145159](https://github.com/user-attachments/assets/f633d7b1-efcd-4319-a6d2-d59185fa6b4a)


- Modified the File info.txt and Committed Changes to the new branch and further pushed to remote github repository :

command :git add info.txt
git commit -m "Feature update: Enhance info.txt with additional details"
git push origin feature-update
![Screenshot 2025-06-20 172331](https://github.com/user-attachments/assets/ad2c5df4-1a9f-4c84-8b17-c8b471dc2b05)

![Screenshot 2025-06-20 172406](https://github.com/user-attachments/assets/b17c17e0-d317-4b10-991a-6add1b5b60da)


- merging the feature-update branch with master branch through creating a pull request on github

# Step-1:
Go to pull requests click on New pull request option which is in green color

![Screenshot 2025-06-20 173347](https://github.com/user-attachments/assets/c1b95f80-0499-4cdb-adc9-14df959edcdc)

# Step-2:
Enter the base branch in which we have to merge our compare branch as you can see below .

base branch:master compare branch:feature-update

then click on create pull request option.

![Screenshot 2025-06-20 173442](https://github.com/user-attachments/assets/de354f4d-21e0-4b17-9184-1c18c334952d)

# Step -3:
The page will be displayed as shown in the figure below which gives us breif about what are being merged from feature-update branch into master branch and verify the conflicts present if no conflicts are present then click on merge pull request option.

![Screenshot 2025-06-20 173626](https://github.com/user-attachments/assets/1766c084-5a0b-4796-b42c-72bd0372d385)

# Step-4:
Finally the feature-update branch is being merged in master branch . Now we can easily delete the feature-update branch if we want .

![Screenshot 2025-06-20 173727](https://github.com/user-attachments/assets/f848b173-396e-47d0-be52-3343aad31d81)







72 changes: 72 additions & 0 deletions 2025/git/01_Git_and_Github_Basics/solutions.md/task6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Task 6: Explain Branching Strategies

From task 1-5 git commands which I have used are :

- For cloning the repository in out local machine i used

command : git clone

- For initializing a git repository i used

command : git init

- For checking the status of the work i used

command : git status

- For making the file unstaged I used

command : git add .

- For commiting the changes applied I used
Comment on lines +5 to +21
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Correct terminology and grammar in command descriptions

  1. “in out local machine” → “on our local machine”
  2. git add . stages files, it does not “make the file unstaged”
  3. git remote origin <URL> should be git remote **add** origin <URL>
- For cloning the repository in out local machine i used 
+For cloning the repository **on our** local machine I used

- For making the file unstaged I used 
-          command : git add .
+To **stage** all current changes I used  
+```bash
+git add .
+```
...
-         command : git remote origin <URL>
+```bash
+git remote add origin <URL>
+```
🧰 Tools
🪛 LanguageTool

[uncategorized] ~5-~5: The preposition “on” seems more likely in this position than the preposition “in”.
Context: ...sed are : - For cloning the repository in out local machine i used ...

(AI_EN_LECTOR_REPLACEMENT_PREPOSITION_IN_ON)


[uncategorized] ~5-~5: “out” (outside) seems less likely than “our” (belonging to us).
Context: ... are : - For cloning the repository in out local machine i used comm...

(AI_HYDRA_LEO_CP_OUT_OUR)


[uncategorized] ~5-~5: Possible missing comma found.
Context: ...For cloning the repository in out local machine i used command : git clon...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~9-~9: Possible missing comma found.
Context: ...d : git clone - For initializing a git repository i used command : git init...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~13-~13: Possible missing comma found.
Context: ...init - For checking the status of the work i used command : git statu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~17-~17: Possible missing comma found.
Context: ...nd : git status - For making the file unstaged I used command : git add . ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~21-~21: Possible missing comma found.
Context: ... git add . - For commiting the changes applied I used command : git commit...

(AI_HYDRA_LEO_MISSING_COMMA)

🤖 Prompt for AI Agents
In 2025/git/01_Git_and_Github_Basics/solutions.md/task6.md between lines 5 and
21, correct the grammar and terminology in the command descriptions: change "in
out local machine" to "on our local machine," update the description for `git
add .` to indicate it stages files rather than unstages them, and fix the remote
command from `git remote origin <URL>` to `git remote add origin <URL>`. Also,
ensure proper markdown formatting for the command blocks.


command : git commit -m " commit message"

- For connecting github locally through remote url

command : git remote origin <URL>

- For setting up the URL

command : git remote set-url origin <URL>

- For pushing the code to GitHub

command : git push origin <branchname>

- For fetching the code from GitHub

command : git pull -u origin <branchname>

- For making the branch upto date for push and pull of code rebase command

command : git config pull.rebase false

- For checking the commit history

command : git log

- For creating a new branch

command : git checkout -b <newbranchname>

# Why branching strategies are important

Branching strategy help teams to managed code changes in a structured way , especially when multiple developers are working on the same project.

Key Benefits :

- Isolating features and bug fixes :
Developers can work on new features or bug fixes in separate branches without effecting the main code base .

- Facilitating parallel development :
Multiple branches helps the team members to work on different tasks without interfering with each other .

- Reducing merge conflicts :
By organizing work in different branches and merging regularly , the risk of large merge conflicts is reduced .

- Enabling effective code reviews :
Changes can be reviewed by creating a pull requests before merging into the main branch,improving code quality and team collaboration .



56 changes: 56 additions & 0 deletions 2025/git/02_Git_and_Github_Advanced/solutions.md/taks1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Task 1: Working with Pull Requests (PRs)
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Filename is misspelled (taks1.md) – should be task1.md
Broken links and confusion will follow; please rename the file.

🤖 Prompt for AI Agents
In 2025/git/02_Git_and_Github_Advanced/solutions.md/taks1.md at line 1, the
filename is misspelled as "taks1.md". Rename the file to "task1.md" to correct
the spelling and prevent broken links or confusion.


# Pull request :
A pull request is a way to propose changes you've made in a branch to be merged into another branch, usually the main branch of a project.

In simple terms the pull request means you make changes -> push them to GitHub-> you open a pull request -> others can review the changes -> if approved, it gets merged into the main branch.

Why its called a "pull" request?

Because you're asking the repository owner (or team) to pull the chnages into their branch .

Example:
- you create a new branch called feature-login.
- you add login functionality and commit the code .
- you push the feature-login to GitHub.
- you open a pull request to merge feature-login into main .
- your team members review the PRs , give feedback or approve it .
- once, approved its merged into the main branch or codebase.

# Benefits of PRs:
- Enables code reviews .
- Keeps main branch clean and stable.
- Allows for discussion and collaboration .
- Tracks changes , comments and approvals .

1- Fork a repository and clone it locally :
![Screenshot 2025-06-23 152700](https://github.com/user-attachments/assets/a12a34cf-093a-44db-80b4-5355e03cc220)
![Screenshot 2025-06-23 152811](https://github.com/user-attachments/assets/53daa707-7d60-4908-90ac-052c0eb8cb97)


command : git clone https://github.com/mirzanikhath/fairfield-programming.github.io.git

command: cd fairfield-programming.github.io
![Screenshot 2025-06-23 153007](https://github.com/user-attachments/assets/daa9f746-bfff-4d2c-89d7-0fae340fab3f)
![Screenshot 2025-06-23 153145](https://github.com/user-attachments/assets/0bed8b4d-018f-4676-9df9-a7871acb1594)


2- Create a feature branch and make changes .
![Screenshot 2025-06-23 153420](https://github.com/user-attachments/assets/68b7cd72-540b-4d02-a2ff-373747bcb255)


command : git checkout -b feature-branch

created a new file feature.txt and append a line into it

command : echo "New Feature" >> feature.txt

to add this file

command : git add .

to commit the chnages

command : git commit -m "added new feature"


Loading