mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Backup untracked files.
This commit is contained in:
parent
7b0e0e471c
commit
0bc5364128
|
@ -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)
|
* [Exclude author from logs](#exclude-author-from-logs)
|
||||||
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
|
* [Generates a summary of pending changes](#generates-a-summary-of-pending-changes)
|
||||||
* [List references in a remote repository](#list-references-in-a-remote-repository)
|
* [List references in a remote repository](#list-references-in-a-remote-repository)
|
||||||
|
* [Backup untracked files.](#backup-untracked-files)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @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
|
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
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -455,4 +455,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title":"List references in a remote repository",
|
"title":"List references in a remote repository",
|
||||||
"tip": "git ls-remote git://git.kernel.org/pub/scm/git/git.git"
|
"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"
|
||||||
}]
|
}]
|
Loading…
Reference in New Issue
Block a user