mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-14 03:43:57 +02:00
15
README.md
15
README.md
@@ -55,6 +55,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
|
|||||||
- [GitHub Resources](#github-resources)
|
- [GitHub Resources](#github-resources)
|
||||||
- [GitHub Talks](#github-talks)
|
- [GitHub Talks](#github-talks)
|
||||||
- [SSH keys](#ssh-keys)
|
- [SSH keys](#ssh-keys)
|
||||||
|
- [Repository Templates](#repository-templates)
|
||||||
- [Git](#git)
|
- [Git](#git)
|
||||||
- [Remove All Deleted Files from the Working Tree](#remove-all-deleted-files-from-the-working-tree)
|
- [Remove All Deleted Files from the Working Tree](#remove-all-deleted-files-from-the-working-tree)
|
||||||
- [Previous Branch](#previous-branch)
|
- [Previous Branch](#previous-branch)
|
||||||
@@ -76,6 +77,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
|
|||||||
- [Git Books](#git-books)
|
- [Git Books](#git-books)
|
||||||
- [Git Videos](#git-videos)
|
- [Git Videos](#git-videos)
|
||||||
- [Git Articles](#git-articles)
|
- [Git Articles](#git-articles)
|
||||||
|
|
||||||
|
|
||||||
## GitHub
|
## GitHub
|
||||||
### Ignore Whitespace
|
### Ignore Whitespace
|
||||||
@@ -669,6 +671,19 @@ e.g. [https://github.com/tiimgreen.keys](https://github.com/tiimgreen.keys)
|
|||||||
|
|
||||||
[*Read more about accessing public ssh keys.*](https://changelog.com/github-exposes-public-ssh-keys-for-its-users/)
|
[*Read more about accessing public ssh keys.*](https://changelog.com/github-exposes-public-ssh-keys-for-its-users/)
|
||||||
|
|
||||||
|
### Repository Templates
|
||||||
|
|
||||||
|
You can set your repository to template which allows anyone to copy the files and structure and allowing them to instantly use the files (e.g. for a tutorial or if writing boilerplate code).
|
||||||
|
|
||||||
|
This is done by going into settings for your repository and changing it to a template one
|
||||||
|

|
||||||
|
|
||||||
|
Changing to a template repository will give a new URL endpoint which can be shared and instantly allows users to use your repository as a template. Alternatively, they can go to your repository and click the 'Use as template' button.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[*Read more about using repositories as templates*](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/)
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
### Remove All Deleted Files from the Working Tree
|
### Remove All Deleted Files from the Working Tree
|
||||||
When you delete a lot of files using `/bin/rm` you can use the following command to remove them from the working tree and from the index, eliminating the need to remove each one individually:
|
When you delete a lot of files using `/bin/rm` you can use the following command to remove them from the working tree and from the index, eliminating the need to remove each one individually:
|
||||||
|
Reference in New Issue
Block a user