8000 Merge pull request #194 from SKhan97/master · nirajkvinit/github-cheat-sheet@ac87bec · GitHub
[go: up one dir, main page]

Skip to content

Commit ac87bec

Browse files
authored
Merge pull request tiimgreen#194 from SKhan97/master
Added Repository templates
2 parents 27749b9 + 59b710c commit ac87bec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
5555
- [GitHub Resources](#github-resources)
5656
- [GitHub Talks](#github-talks)
5757
- [SSH keys](#ssh-keys)
58+
- [Repository Templates](#repository-templates)
5859
- [Git](#git)
5960
- [Remove All Deleted Files from the Working Tree](#remove-all-deleted-files-from-the-working-tree)
6061
- [Previous Branch](#previous-branch)
@@ -76,6 +77,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
7677
- [Git Books](#git-books)
7778
- [Git Videos](#git-videos)
7879
- [Git Articles](#git-articles)
80+
7981

8082
## GitHub
8183
### Ignore Whitespace
@@ -669,6 +671,19 @@ e.g. [https://github.com/tiimgreen.keys](https://github.com/tiimgreen.keys)
669671

670672
[*Read more about accessing public ssh keys.*](https://changelog.com/github-exposes-public-ssh-keys-for-its-users/)
671673

674+
### Repository Templates
675+
676+
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).
677+
678+
This is done by going into settings for your repository and changing it to a template one
679+
![Convert](https://i.postimg.cc/hGCrVm9F/Template.gif)
680+
681+
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.
682+
683+
![Template](https://i.postimg.cc/L8PKCHx0/New-Template.gif)
684+
685+
[*Read more about using repositories as templates*](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/)
686+
672687
## Git
673688
### Remove All Deleted Files from the Working Tree
674689
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:

0 commit comments

Comments
 (0)
0