forked from gitwithjendiamond/intro_to_git_jendiamond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit_work_flow.html
47 lines (47 loc) · 1.53 KB
/
git_work_flow.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
<html>
<head>
<title>Git with Jen Diamond</title>
<link rel="stylesheet" type="text/css" href="jen.css">
</head>
<body>
<ul id="nav">
<li id="navli"><img src="images/github-icon2.png"></li>
<li id="navli"><a href="index.html">Home</a></li>
<li id="navli"><a href="git_work_flow.html">Git Workflow</a></li>
<li id="navli"><a href="resources.html">Resources</a></li>
<li id="navli"><a href="octocats.html">Octocats</a></li>
<li id="navli"><a href="https://github.com/jendiamond">GitHub</a></li>
<li id="navli"><a href="https://gist.github.com/jendiamond">Gists</a></li>
</ul>
<div id="resources">
<h2>Basic Git Workflow</h2>
<ul>
<li>git branch</li>
<li>git status</li>
<li>git add .</li>
<li>git status</li>
<li>git commit -m 'Your comment'</li>
<li>git status</li>
<li>git push origin master</li>
</ul>
<hr/>
<h2>Git Commands</h2>
<ul>
<li>git init</li>
<li>git status</li>
<li>git add .</li>
<li>git commit -m 'Initial commit'</li>
<li>git diff</li>
<li>git push origin master</li>
<li>git pull origin master</li>
<li>git remote add origin https://github.com/jendiamond/try_git.git</li>
<li>git remote -v</li>
<li>git log</li>
<li>git branch</li>
<li>git checkout <branch-name></li>
<li>git checkout -b <branch-name></li>
<li>git merge <branch-name></li>
</ul>
</div>
</body>
</html>