mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Clarification of git diff-tree and ls-tree
This commit is contained in:
parent
964216ba73
commit
7810dda14e
10
README.md
10
README.md
|
@ -4,7 +4,8 @@
|
||||||
<!-- @doxie.inject start toc -->
|
<!-- @doxie.inject start toc -->
|
||||||
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
|
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
|
||||||
* [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull)
|
* [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull)
|
||||||
* [List of all the files changed in a commit](https://github.com/git-tips/tips#list-of-all-the-files-changed-in-a-commit)
|
* [List of all files changed in a commit](https://github.com/git-tips/tips#list-of-all-files-changed-in-a-commit)
|
||||||
|
* [List of all files till a commit](https://github.com/git-tips/tips#list-of-all-files-till-a-commit)
|
||||||
* [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit)
|
* [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit)
|
||||||
* [List all the conflicted files](https://github.com/git-tips/tips#list-all-the-conflicted-files)
|
* [List all the conflicted files](https://github.com/git-tips/tips#list-all-the-conflicted-files)
|
||||||
* [List all branches that are already merged into master](https://github.com/git-tips/tips#list-all-branches-that-are-already-merged-into-master)
|
* [List all branches that are already merged into master](https://github.com/git-tips/tips#list-all-branches-that-are-already-merged-into-master)
|
||||||
|
@ -35,7 +36,12 @@
|
||||||
git fetch --all && git reset --hard origin/master
|
git fetch --all && git reset --hard origin/master
|
||||||
```
|
```
|
||||||
|
|
||||||
## List of all the files changed in a commit
|
## List of all files changed in a commit
|
||||||
|
```sh
|
||||||
|
git diff-tree --no-commit-id --name-only -r <commit-ish>
|
||||||
|
```
|
||||||
|
|
||||||
|
## List of all files till a commit
|
||||||
```sh
|
```sh
|
||||||
git ls-tree --name-only -r <commit-ish>
|
git ls-tree --name-only -r <commit-ish>
|
||||||
```
|
```
|
||||||
|
|
|
@ -4,7 +4,11 @@
|
||||||
"tip": "git fetch --all && git reset --hard origin/master"
|
"tip": "git fetch --all && git reset --hard origin/master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "List of all the files changed in a commit",
|
"title": "List of all files changed in a commit",
|
||||||
|
"tip": "git diff-tree --no-commit-id --name-only -r <commit-ish>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "List of all files till a commit",
|
||||||
"tip": "git ls-tree --name-only -r <commit-ish>"
|
"tip": "git ls-tree --name-only -r <commit-ish>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user