You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
76
76
-[Git Books](#git-books)
77
77
-[Git Videos](#git-videos)
78
78
-[Git Articles](#git-articles)
79
+
-[Repository Templates](#repository-templates)
79
80
80
81
## GitHub
81
82
### Ignore Whitespace
@@ -669,6 +670,19 @@ e.g. [https://github.com/tiimgreen.keys](https://github.com/tiimgreen.keys)
669
670
670
671
[*Read more about accessing public ssh keys.*](https://changelog.com/github-exposes-public-ssh-keys-for-its-users/)
671
672
673
+
### Repository Templates
674
+
675
+
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).
676
+
677
+
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/)
685
+
672
686
## Git
673
687
### Remove All Deleted Files from the Working Tree
674
688
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