-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGithub Steps
More file actions
120 lines (91 loc) · 2.06 KB
/
Copy pathGithub Steps
File metadata and controls
120 lines (91 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
🚀 GitHub Project Upload Steps
Step 1: Create a New Repository on GitHub
Go to GitHub → New Repository
Example:
aws-cloudwatch-monitoring-project
Select:
Public
Don't initialize with README
Click Create Repository
Step 2: Open Terminal in Project Folder
cd C:\Users\PAYAL\aws-cloudwatch-monitoring-project
Verify files:
dir
Step 3: Initialize Git Repository
git init
What it does?
Creates a local Git repository in your project folder.
Step 4: Check Status
git status
What it does?
Shows:
New files
Modified files
Files ready for commit
Step 5: Add All Files
git add .
What it does?
Stages all project files for commit.
Step 6: Create First Commit
git commit -m "Initial commit"
What it does?
Creates a snapshot of your project.
Step 7: Connect GitHub Repository
git remote add origin https://github.com/yourusername/repository-name.git
Example:
git remote add origin https://github.com/payal177/aws-cloudwatch-monitoring-project.git
Verify
git remote -v
Step 8: Push Code to GitHub
git branch -M main
git push -u origin main
What it does?
Uploads your project to GitHub.
🔄 Future Changes
After adding screenshots, README updates, or new files:
Check Changes
git status
Stage Changes
git add .
Commit Changes
git commit -m "Added CloudWatch dashboard screenshots"
Push Changes
git push
📸 Add Screenshots
Create folder:
screenshots
Example:
screenshots/
├── ec2-instance.png
├── cloudwatch-metrics.png
├── dashboard.png
├── sns-alert-email.png
Then:
git add .
git commit -m "Added project screenshots"
git push
🛠 Useful Commands
See Commit History
git log --oneline
Check Remote Repository
git remote -v
Check Current Branch
git branch
Pull Latest Changes
git pull
📂 Typical Project Structure
aws-cloudwatch-monitoring-project/
│
├── README.md
├── screenshots/
│ ├── ec2-instance.png
│ ├── cwagent-metrics.png
│ ├── dashboard.png
│ └── sns-alert.png
│
└── cloudwatch-agent-config.json
⭐ Workflow You'll Use Most Often
git status
git add .
git commit -m "Describe changes"
git push