Skip to content

Commit 083d7b2

Browse files
Create README.md
1 parent c6ce135 commit 083d7b2

1 file changed

Lines changed: 147 additions & 0 deletions

File tree

  • level-2-git-github/projects/project-1-git-workflow
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
############################################################
2+
# Project 1: Git & GitHub Workflow (Beginner)
3+
# Path:
4+
# projects/git-github/project-1-git-workflow/README.md
5+
############################################################
6+
7+
8+
############################
9+
# 📌 Project Objective
10+
############################
11+
# Understand and practice the basic Git and GitHub workflow
12+
# used in real-world DevOps and open-source projects.
13+
#
14+
# This project helps you learn:
15+
# - Git (version control)
16+
# - GitHub (remote repository)
17+
# - Collaboration using Pull Requests
18+
19+
20+
############################
21+
# 🧠 Skills You Will Learn
22+
############################
23+
# - git init
24+
# - git add & git commit
25+
# - git branch & checkout
26+
# - git push & pull
27+
# - Creating Pull Requests using GitHub GUI
28+
29+
30+
############################
31+
# 🛠️ Prerequisites
32+
############################
33+
# - Git installed on your system
34+
# - GitHub account
35+
# - Basic Linux command knowledge
36+
37+
38+
############################
39+
# 📋 Project Tasks
40+
############################
41+
42+
43+
############################
44+
# ✅ Task 1: Create Local Repository
45+
############################
46+
mkdir git-workflow
47+
cd git-workflow
48+
git init
49+
50+
51+
############################
52+
# ✅ Task 2: Create File and Commit
53+
############################
54+
echo "My first Git project" > README.md
55+
git add README.md
56+
git commit -m "Initial commit"
57+
58+
59+
############################
60+
# ✅ Task 3: Create GitHub Repository
61+
############################
62+
# Steps (GUI):
63+
# 1. Go to GitHub
64+
# 2. Click New Repository
65+
# 3. Repository name: git-workflow
66+
# 4. Do NOT initialize with README
67+
# 5. Click Create repository
68+
69+
70+
############################
71+
# ✅ Task 4: Push Code to GitHub
72+
############################
73+
git branch -M main
74+
git remote add origin https://github.com/<your-username>/git-workflow.git
75+
git push -u origin main
76+
77+
78+
############################
79+
# ✅ Task 5: Create Feature Branch
80+
############################
81+
git checkout -b feature-update-readme
82+
83+
84+
############################
85+
# ✅ Task 6: Make Changes and Commit
86+
############################
87+
echo "Learning Git branching" >> README.md
88+
git add .
89+
git commit -m "Update README with branch content"
90+
91+
92+
############################
93+
# ✅ Task 7: Push Branch to GitHub
94+
############################
95+
git push origin feature-update-readme
96+
97+
98+
############################
99+
# ✅ Task 8: Create Pull Request (GUI)
100+
############################
101+
# Steps:
102+
# 1. Open GitHub repository
103+
# 2. Click Compare & pull request
104+
# 3. Add PR title and description
105+
# 4. Click Create pull request
106+
107+
108+
############################
109+
# ✅ Task 9: Merge Pull Request
110+
############################
111+
# - Merge PR using GitHub UI
112+
# - Delete branch after merge
113+
114+
115+
############################
116+
# 🎯 Expected Outcome
117+
############################
118+
# - Code successfully pushed to GitHub
119+
# - Pull Request created and merged
120+
# - Clear understanding of Git workflow
121+
122+
123+
############################
124+
# 🌱 Real-World DevOps Use Case
125+
############################
126+
# This workflow is used in:
127+
# - CI/CD pipelines
128+
# - Infrastructure as Code (IaC)
129+
# - Team collaboration
130+
# - Open-source contributions
131+
132+
133+
############################
134+
# 🧪 Bonus Practice
135+
############################
136+
# - Create another branch
137+
# - Make conflicting changes
138+
# - Practice resolving merge conflicts
139+
140+
141+
############################
142+
# ✅ Project Status
143+
############################
144+
# ✔ Beginner Friendly
145+
# ✔ Hands-on
146+
# ✔ DevOps Ready
147+
############################################################

0 commit comments

Comments
 (0)