mirror of
https://github.com/namibia/tips.git
synced 2025-01-08 16:14:09 +00:00
git show
This commit is contained in:
parent
168303734b
commit
b238e44ff1
@ -99,6 +99,7 @@
|
||||
* [Remove entry in the global config.](https://github.com/git-tips/tips#remove-entry-in-the-global-config)
|
||||
* [Checkout a new branch without any history](https://github.com/git-tips/tips#checkout-a-new-branch-without-any-history)
|
||||
* [File diff between staging and the last file version.](https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version)
|
||||
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
|
||||
|
||||
<!-- 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 -->
|
||||
@ -677,5 +678,10 @@ git checkout --orphan <branch_name>
|
||||
git diff --staged
|
||||
```
|
||||
|
||||
## Extract file from another branch.
|
||||
```sh
|
||||
git show <banch_name>:<file_name>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
Reference in New Issue
Block a user