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
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
55
55
-[GitHub Resources](#github-resources)
56
56
-[GitHub Talks](#github-talks)
57
57
-[SSH keys](#ssh-keys)
58
+
-[Repository Templates](#repository-templates)
58
59
-[Git](#git)
59
60
-[Remove All Deleted Files from the Working Tree](#remove-all-deleted-files-from-the-working-tree)
60
61
-[Previous Branch](#previous-branch)
@@ -76,6 +77,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
76
77
-[Git Books](#git-books)
77
78
-[Git Videos](#git-videos)
78
79
-[Git Articles](#git-articles)
80
+
79
81
80
82
## GitHub
81
83
### Ignore Whitespace
@@ -669,6 +671,19 @@ e.g. [https://github.com/tiimgreen.keys](https://github.com/tiimgreen.keys)
669
671
670
672
[*Read more about accessing public ssh keys.*](https://changelog.com/github-exposes-public-ssh-keys-for-its-users/)
671
673
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
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/)
686
+
672
687
## Git
673
688
### Remove All Deleted Files from the Working Tree
674
689
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