mirror of
https://github.com/namibia/tips.git
synced 2025-02-02 19:48: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)
|
||||
* [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)
|
||||
* [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>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -665,5 +666,10 @@ git log --show-signature
|
||||
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>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user