mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-12 02:44:10 +02:00
Merge pull request #163 from ruduran/master
Move SSH keys section into GitHub
This commit is contained in:
26
README.md
26
README.md
@@ -54,11 +54,11 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
|
||||
- [GitHub Student Developer Pack](#github-student-developer-pack)
|
||||
- [GitHub Resources](#github-resources)
|
||||
- [GitHub Talks](#github-talks)
|
||||
- [SSH keys](#ssh-keys)
|
||||
- [Git](#git)
|
||||
- [Remove All Deleted Files from the Working Tree](#remove-all-deleted-files-from-the-working-tree)
|
||||
- [Previous Branch](#previous-branch)
|
||||
- [Stripspace](#stripspace)
|
||||
- [SSH keys](#ssh-keys)
|
||||
- [Checking out Pull Requests](#checking-out-pull-requests)
|
||||
- [Empty Commits](#empty-commits)
|
||||
- [Styled Git Status](#styled-git-status)
|
||||
@@ -656,6 +656,18 @@ If you are a student you will be eligible for the GitHub Student Developer Pack.
|
||||
| Git and GitHub Secrets | https://www.youtube.com/watch?v=Foz9yvMkvlA |
|
||||
| More Git and GitHub Secrets | https://www.youtube.com/watch?v=p50xsL-iVgU |
|
||||
|
||||
### SSH keys
|
||||
|
||||
You can get a list of public ssh keys in plain text format by visiting:
|
||||
|
||||
```
|
||||
https://github.com/{user}.keys
|
||||
```
|
||||
|
||||
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/)
|
||||
|
||||
## Git
|
||||
### 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:
|
||||
@@ -715,18 +727,6 @@ $ git stripspace < README.md
|
||||
|
||||
[*Read more about the Git `stripspace` command.*](http://git-scm.com/docs/git-stripspace)
|
||||
|
||||
### SSH keys
|
||||
|
||||
You can get a list of public ssh keys in plain text format by visiting:
|
||||
|
||||
```
|
||||
https://github.com/{user}.keys
|
||||
```
|
||||
|
||||
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/)
|
||||
|
||||
### Checking out Pull Requests
|
||||
|
||||
Pull Requests are special branches on the GitHub repository which can be retrieved locally in several ways:
|
||||
|
Reference in New Issue
Block a user