Skip to content

Commit 0bc5364

Browse files
committed
Backup untracked files.
1 parent 7b0e0e4 commit 0bc5364

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
155155
* [Exclude author from logs](#exclude-author-from-logs)
156156
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
157157
* [List references in a remote repository](#list-references-in-a-remote-repository)
158+
* [Backup untracked files.](#backup-untracked-files)
158159

159160
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
160161
<!-- @doxie.inject end toc -->
@@ -1057,5 +1058,10 @@ git request-pull v1.0 https://git.ko.xz/project master:for-linus
10571058
git ls-remote git://git.kernel.org/pub/scm/git/git.git
10581059
```
10591060
1061+
## Backup untracked files.
1062+
```sh
1063+
git ls-files --others -i --exclude-standard | xargs zip untracked.zip
1064+
```
1065+
10601066
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10611067
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,7 @@
455455
}, {
456456
"title":"List references in a remote repository",
457457
"tip": "git ls-remote git://git.kernel.org/pub/scm/git/git.git"
458+
}, {
459+
"title": "Backup untracked files.",
460+
"tip": "git ls-files --others -i --exclude-standard | xargs zip untracked.zip"
458461
}]

0 commit comments

Comments
 (0)