Backup untracked files.

This commit is contained in:
Hemanth.HM 2017-01-29 15:54:27 +05:30
parent 7b0e0e471c
commit 0bc5364128
2 changed files with 9 additions and 0 deletions

View File

@ -155,6 +155,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Exclude author from logs](#exclude-author-from-logs)
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
* [List references in a remote repository](#list-references-in-a-remote-repository)
* [Backup untracked files.](#backup-untracked-files)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -1057,5 +1058,10 @@ git request-pull v1.0 https://git.ko.xz/project master:for-linus
git ls-remote git://git.kernel.org/pub/scm/git/git.git
```
## Backup untracked files.
```sh
git ls-files --others -i --exclude-standard | xargs zip untracked.zip
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -455,4 +455,7 @@
}, {
"title":"List references in a remote repository",
"tip": "git ls-remote git://git.kernel.org/pub/scm/git/git.git"
}, {
"title": "Backup untracked files.",
"tip": "git ls-files --others -i --exclude-standard | xargs zip untracked.zip"
}]