forked from bibekacharya101/hotel-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
178 lines (172 loc) · 5.34 KB
/
index.html
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<style>
/* Set default font family and padding for body */
body {
font-family: Arial, sans-serif;
padding: 20px;
}
/* Style headings */
h1 {
font-size: 36px;
margin-bottom: 30px;
}
h2 {
font-size: 24px;
margin-top: 40px;
margin-bottom: 20px;
}
/* Style paragraphs */
p {
font-size: 18px;
line-height: 1.5;
margin-bottom: 20px;
}
/* Style code blocks */
code {
font-family: monospace;
font-size: 16px;
background-color: #f5f5f5;
padding: 2px 5px;
border-radius: 3px;
}
/* Style lists */
ul {
margin-bottom: 20px;
}
li {
font-size: 18px;
line-height: 1.5;
margin-bottom: 10px;
}
</style>
<title>Git-and-Github-Manual</title>
</head>
<body>
<h1>Git-and-Github-Manual</h1>
<p>
Welcome to the Git-and-Github-Manual! This is a sample website project
created to demonstrate the use of Git and GitHub.
</p>
<h2>Git and GitHub User Manual</h2>
<h3>Git</h3>
<p>
Git is a version control system that allows you to keep track of changes
made to your project over time.
</p>
<h2>Why is Git Important?</h2>
<ul>
<li>
Git allows for version control, which means developers can keep track of
changes made to the code and easily revert to earlier versions if
necessary.
</li>
<li>
Git enables collaboration by allowing multiple developers to work on the
same codebase simultaneously.
</li>
<li>
Git reduces the risk of code conflicts by providing a clear history of
changes made to the code.
</li>
</ul>
<h2>Why is GitHub Important?</h2>
<ul>
<li>
GitHub is a web-based hosting service that provides a platform for
software development teams to store and manage their Git repositories.
</li>
<li>
GitHub allows for easy collaboration among team members by providing
tools for code review and feedback.
</li>
<li>
GitHub provides a centralized location for code, making it easy for team
members to access and work on the same codebase.
</li>
</ul>
<h2>How to Use Git and GitHub</h2>
<ol>
<li>
Clone the repository to your local machine using the following command
in your terminal:<br />
<code>git clone https://github.com/dyells07/hotel-website.git</code>
</li>
<li>
Once you have made changes to the code, add the files to the staging
area using the following command:<br />
<code>git add <filename></code>
</li>
<li>
Commit the changes with a meaningful commit message using the following
command:<br />
<code>git commit -m "Your commit message here"</code>
</li>
<li>
Push the changes to the remote repository using the following
command:<br />
<code>git push origin <branch name></code>
</li>
<li>
If you want to merge changes from another branch into your current
branch, use the following command:<br />
<code>git merge <branch name></code>
</li>
<li>
If you want to view the commit history, use the following command:<br />
<code>git log</code>
</li>
<li>
If you want to revert to a previous commit, use the following
command:<br />
<code>git revert <commit hash></code>
</li>
<li>
If you want to switch to a different branch, use the following
command:<br />
<code>git checkout <branch name></code>
</li>
<li>
If you want to create a new branch and switch to it, use the following
command:<br />
<code>git checkout -b <new branch name></code>
</li>
<li>
If you want to delete a branch, use the following command:<br />
<code>git branch -d <branch name></code>
</li>
</ol>
<h3>GitHub</h3>
<p>
GitHub is a web-based hosting service for version control using Git. It
allows you to share your code with others and collaborate on projects.
Here are some basic GitHub commands that you can use:
</p>
<ul>
<li>
<code>git remote add origin <repository URL></code>: Sets the
remote repository for your local Git repository
</li>
<li>
<code>git push -u origin <branch name></code>: Pushes changes to
the remote repository
</li>
<li><code>git pull</code>: Pulls changes from the remote repository</li>
<li>
<code>git clone <repository URL></code>: Clones a remote
repository to your local machine
</li>
<li>
<code>git branch</code>: Displays a list of branches in the repository
</li>
</ul>
<p>
These are just a few of the basic Git and GitHub commands. For more
information, please refer to the official Git and GitHub documentation.
</p>
</body>
</html>