forked from GitAlias/gitalias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (57 loc) · 2.52 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
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>git wip - GitAlias</title>
<script defer src="https://use.fontawesome.com/releases/v5.8.2/js/all.js"></script>
<meta name='theme-color' content='#aa1e1e'>
<meta name="application-name" content="GitAlias"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.25.0/themes/prism.css" integrity="sha256-h/qtq9bUnXbOOwP4EcbLtYM9Mk3iQQcHZAZ+Jz5y0WQ=" crossorigin="anonymous">
<style>
h1 { font-size: 1.8em; margin-top: 2.0rem; }
h2 { font-size: 1.4em; margin-top: 2.0rem; }
h3 { font-size: 1.2em; margin-top: 2.0rem; }
body { margin: 0; line-height: 1.5rem; }
nav { color: white; background: black; padding: 1rem; }
body { font-family: sans-serif; }
pre code { background: #ddd; font-size: 1.2rem; padding: 1.0rem; }
p, dt, dd, li, ol, ul { margin-top: 1.5rem; margin-bottom: 1.5rem; }
footer { margin: 3.0rem 0 0 0; }
.content { margin: 0 auto; padding: 0 10% 0 10%; }
.text-decoration-none, a.text-decoration-none:link, a.text-decoration-none:visited, a.text-decoration-none:hover, a.text-decoration-none:active { text-decoration: none; }
</style>
</head>
<body>
<nav>
<b><a class="text-decoration-none" href="/" style="color: white;">GitAlias.com</a></b>
</nav>
<div class="content">
<h1>git wip</h1>
<h2>Alias for commit “work in progress”</h2>
<p>Git alias:</p>
<pre><code class="language-git">wip = !"git add --all; git ls-files --deleted -z | xargs -0 git rm; git commit --message=wip"
</code></pre>
<p>Example:</p>
<pre><code class="language-shell">git wip
</code></pre>
<p>Compare:</p>
<ul>
<li>
<p><a href="../git-wip-git-unwip">git wip & git unwip</a> (overview)</p>
</li>
<li>
<p><a href="../git-wip">git wip</a> (this alias)</p>
</li>
<li>
<p><a href="../git-unwip">git unwip</a></p>
</li>
</ul>
</div>
<footer class="footer">
<nav><b><a class="text-decoration-none" href="/" style="color: white;">GitAlias.com</a></b></nav>
</footer>
<script defer src="https://cdn.jsdelivr.net/npm/prismjs@1.25.0/components/prism-core.min.js" integrity="sha256-vlRYHThwdq55dA+n1BKQRzzLwFtH9VINdSI68+5JhpU=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/prismjs@1.25.0/plugins/autoloader/prism-autoloader.min.js" integrity="sha256-cl5LNmPvcRcGFaQFjwEKIfs51AX7wBkvoByH6LTxQCs=" crossorigin="anonymous"></script>
</body>
</html>