> For the complete documentation index, see [llms.txt](https://notes.d15r.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.d15r.de/dev/github.md).

# Github

* [Oh Shit, Git!?!](https://ohshitgit.com/)
* [Git Concepts I Wish I Knew Years Ago ](https://dev.to/g_abud/advanced-git-reference-1o9j)
* [Git Magic](https://crypto.stanford.edu/~blynn/gitmagic/ch01.html)

## Pull Requests

1. [Fork](https://guides.github.com/activities/forking/) the Repository
2. Connect your local to the original “upstream” repository by adding it as a remote
3. [Create a branch](https://guides.github.com/introduction/flow/) for your edits.

### Links

* [Fork and Pull Request Workflow](https://github.com/susam/gitpr)
* [Contributing to an open source PHP package](https://johnbraun.blog/posts/contributing-to-a-PHP-package)

## Actions

* [GitHub Action for GitHub Push](https://github.com/ad-m/github-push-action) - GitHub Actions for pushing to GitHub repository local changes authorizing using GitHub token.
* [GitHub Actions: Hello World](https://lab.github.com/githubtraining/github-actions:-hello-world)

## Issues

* [Improving GitHub Issue Labels](http://karolis.koncevicius.lt/posts/improving_github_issue_labels/)

## Braches

* [A successful Git branching model (2020)](https://nvie.com/posts/a-successful-git-branching-model/)

## Commits

* [Conventional Commits](https://www.conventionalcommits.org/)

## Secrets

* [Best practices for managing and storing secrets](https://blog.gitguardian.com/secrets-api-management/)

## Config

### Deploy Key

```
ssh-keygen -t rsa -b 4096 -C "{email}"
cat .ssh/id_rsa.pub

ssh -T git@github.com
```

.git/config:

```
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git@github.com:user/repo.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
```

[Using Github Deploy Key](https://gist.github.com/zhujunsan/a0becf82ade50ed06115)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.d15r.de/dev/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
