mirror of
https://github.com/namibia/tips.git
synced 2025-02-03 03:58:24 +00:00
orphan branch
This commit is contained in:
parent
afa8747b07
commit
157337d356
@ -97,6 +97,7 @@
|
|||||||
* [Instantly browse your working repository in gitweb.](https://github.com/git-tips/tips#instantly-browse-your-working-repository-in-gitweb)
|
* [Instantly browse your working repository in gitweb.](https://github.com/git-tips/tips#instantly-browse-your-working-repository-in-gitweb)
|
||||||
* [View the GPG signatures in the commit log](https://github.com/git-tips/tips#view-the-gpg-signatures-in-the-commit-log)
|
* [View the GPG signatures in the commit log](https://github.com/git-tips/tips#view-the-gpg-signatures-in-the-commit-log)
|
||||||
* [Remove entry in the global config.](https://github.com/git-tips/tips#remove-entry-in-the-global-config)
|
* [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)
|
||||||
|
|
||||||
<!-- 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 -->
|
||||||
@ -665,5 +666,10 @@ git log --show-signature
|
|||||||
git config --global --unset <entry-name>
|
git config --global --unset <entry-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Checkout a new branch without any history
|
||||||
|
```sh
|
||||||
|
git checkout --orphan <branch_name>
|
||||||
|
```
|
||||||
|
|
||||||
<!-- 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 -->
|
||||||
|
@ -296,4 +296,7 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "Remove entry in the global config.",
|
"title": "Remove entry in the global config.",
|
||||||
"tip": "git config --global --unset <entry-name>"
|
"tip": "git config --global --unset <entry-name>"
|
||||||
|
},{
|
||||||
|
"title": "Checkout a new branch without any history",
|
||||||
|
"tip": "git checkout --orphan <branch_name>"
|
||||||
}]
|
}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user