forked from GitAlias/gitalias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (67 loc) · 3.28 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
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>git add-stage - 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/[email protected]/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 add-stage</h1>
<h2>Add stage files</h2>
<p>Git alias:</p>
<pre><code class="language-git">add-stage = !"f() { git ls-files --stage | cut -f2 | sort -u ; }; git add `f`"
</code></pre>
<p>Example:</p>
<pre><code class="language-shell">git add-stage
</code></pre>
<p>Compare:</p>
<ul>
<li><a href="../git-add-cached">git add-cached</a></li>
<li><a href="../git-add-deleted">git add-deleted</a></li>
<li><a href="../git-add-others">git add-others</a></li>
<li><a href="../git-add-ignored">git add-ignored</a></li>
<li><a href="../git-add-killed">git add-killed</a></li>
<li><a href="../git-add-modified">git add-modified</a></li>
<li><a href="../git-add-stage">git add-stage</a> (this alias)</li>
<li><a href="../git-add-unmerged">git add-unmerged</a></li>
</ul>
<p>Compare corresponding aliases for edit-*:</p>
<ul>
<li><a href="../git-edit-cached">git edit-cached</a></li>
<li><a href="../git-edit-deleted">git edit-deleted</a></li>
<li><a href="../git-edit-others">git edit-others</a></li>
<li><a href="../git-edit-ignored">git edit-ignored</a></li>
<li><a href="../git-edit-killed">git edit-killed</a></li>
<li><a href="../git-edit-modified">git edit-modified</a></li>
<li><a href="../git-edit-stage">git edit-stage</a></li>
<li><a href="../git-edit-unmerged">git edit-unmerged</a></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/[email protected]/components/prism-core.min.js" integrity="sha256-vlRYHThwdq55dA+n1BKQRzzLwFtH9VINdSI68+5JhpU=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" integrity="sha256-cl5LNmPvcRcGFaQFjwEKIfs51AX7wBkvoByH6LTxQCs=" crossorigin="anonymous"></script>
</body>
</html>