-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGit_commands.html
26 lines (23 loc) · 954 Bytes
/
Git_commands.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>All above were run at terminal</h1>
<ul>
<li>git clone <url> # clones a especific repository to your machine</li>
<li>git touch x.file #create an empty file</li>
<li>git add x.file #add a file I want to track next time I save</li>
<li>git commit -m "message"</li>
<li>git status #tell the current status of your repository</li>
<li>git push # send back the changes you made </li>
<li>git pull # the inverse of git push</li>
<li>git log # show all the commits the file has passed by</li>
<li>git reset --hard <commit> #reset to a specific commited older version </li>
<li>git commit -am #commit and add to the staging area, simplifies the code</li>
</ul>
</body>
</html>