Skip to content

Commit bd7a30e

Browse files
committed
Backup untracked files.
1 parent 7f3c195 commit bd7a30e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-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 -->

0 commit comments

Comments
 (0)