Github ui: Difference between revisions
From wikinotes
(Created page with "= PR/Issue Filters = <blockquote> <source lang="bash"> # shopify is:open is:pr -is:draft -reviewed-by:@me review-requested:@me </source> <source lang="bash"> +is:pr...") |
No edit summary |
||
Line 16: | Line 16: | ||
</source> | </source> | ||
</blockquote><!-- PR/issue filters --> | </blockquote><!-- PR/issue filters --> | ||
== deploy keys == | |||
<blockquote> | |||
you can generate keys to provide read-only, or read-write access to a repo. | |||
<source lang="bash"> | |||
ssh-keygen -t ed25519 # a strong key | |||
</source> | |||
<source lang="yaml"> | |||
https://github.com/<you>/<repo>/settings/keys/new # url to add new deploykey | |||
</source> | |||
next we'll create entries within our ssh config for the repo. | |||
Create an `alias` for github.com, that will identify which deploykey you'll | |||
be using here. | |||
<source lang="ini"> | |||
Host <alias-for-your-repo> github.com | |||
HostName github.com | |||
IdentityFile /home/you/.ssh/deploykey | |||
User git | |||
</source> | |||
Finally, clone the git repository using your alias instead of github.com. | |||
<source lang="bash"> | |||
git clone <alias-for-your-repo>:<you>/<repo> | |||
</source> | |||
{{ NOTE | | |||
Your alias must be a word, not a full address. Some examples: | |||
* git will not recognize <code>myrepo:/you/myrepo</code> as an alias | |||
* your alias cannot resolve to your repo ex: <code>git clone {alias}</code> is not sufficient. You will need to use <code>git clone {alias}:you/repo</code>. | |||
}} | |||
</blockquote><!-- deploy keys --> |
Revision as of 15:31, 19 September 2021
PR/Issue Filters
# shopify is:open is:pr -is:draft -reviewed-by:@me review-requested:@me+is:pr # only include pull requests -is:draft # remove drafts -is:approved # removes approved (not if 1/2 approvals) -reviewed-by:willjp # removes approved by me created:2020-03-01..2020-05-01 # created within range created:<2020-03-01 # created before date
deploy keys
you can generate keys to provide read-only, or read-write access to a repo.
ssh-keygen -t ed25519 # a strong keyhttps://github.com/<you>/<repo>/settings/keys/new # url to add new deploykeynext we'll create entries within our ssh config for the repo.
Create an `alias` for github.com, that will identify which deploykey you'll be using here.
Host <alias-for-your-repo> github.com HostName github.com IdentityFile /home/you/.ssh/deploykey User git
Finally, clone the git repository using your alias instead of github.com.git clone <alias-for-your-repo>:<you>/<repo>NOTE:
Your alias must be a word, not a full address. Some examples:
- git will not recognize
myrepo:/you/myrepo
as an alias- your alias cannot resolve to your repo ex:
git clone {alias}
is not sufficient. You will need to usegit clone {alias}:you/repo
.