Duration: 90–120 mins
Submission: Share:
- Raise a PR with your branch
- Final README.md
Rules:
- Use terminal only
- Do not use file explorer
- Commit after every section
- Follow steps sequentially
Create a folder:
internship-assignment
Move into it. Commands to use:
mkdir cd pwd
Create this structure:
text internship-assignment │ ├── docs ├── scripts ├── logs ├── images └── notes
Commands:
mkdir ls
Create:
text docs/git.txt docs/linux.txt notes/commands.txt scripts/start.sh logs/app.log
Commands:
touch ls
Inside: git.txt
Write:
text
- What is Git
- Why Git is useful
- Difference between Git and GitHub
Inside: linux.txt
Write:
text
- What is Linux
- Three commands learned
Search:
text Git
inside all files.
Commands:
grep find
Inside project:
Initialize Git.
Commands:
git init git status
Stage all files.
Commit:
text Initial Project Setup
Commands:
git add . git commit
Modify:
text docs/git.txt
Add:
text Three git commands learned
Check changes.
Commands:
git status git diff
Commit.
Message:
text Updated git notes
Create branch:
text feature/
Example:
git checkout -b feature/rahul
Verify:
git branch
Deliverable: Screenshot.
Inside branch:
Create:
text notes/learning.md
Write:
text My top 5 learnings
Commit:
text Added learning summary
Switch:
text main
Merge:
text feature/
Commands:
git checkout main git merge
Move to your original branch, publish your branch. and then push the changes using
git push origin feature/
Create Pull Request.
Configuration:
Source:
feature/
Destination:
main
PR Title:
Submission –
Description:
Completed all assignment tasks.
Topics practiced:
- Linux Commands
- Git Workflow
- Branching
- Merge
- GitHub
Task 13 : Review Feedback
If changes are requested:
Update code.
Commit.
Push again:
git add . git commit -m "Resolved review comments" git push
PR updates automatically.