Git(Hub)
Sample
sudo apt-get install git
git init git add git commit git clone git branch git checkout git push
## Clone a specific branch git clone -b <branch> https://github.com/<repo>
Pull Request in Public Repository
Prerequisites
## Configure User Information git config --global user.email "12345678+[username]@users.noreply.github.com" git config --global user.name "[username]"
Pull Request
## 1. Fork public repository as a private repository: github.com ## https://docs.github.com/get-started/quickstart/fork-a-repo
## 2. Clone forked repository to local machine: remote > local git clone https://github.com/[user]/[repository(forked)] cd [repository(forked)]
## 3. Generating new branch for development: local git checkout -b dev #git branch dev origin/master #git checkout dev
## 4. Update content(s) of new branch for development: local ... depending on your project ...
## 5. Adding new or changed files to Git staging area: local git add updated.sh
## 6. Saving change(s): local git commit -m "[comment]"
## 7. Updating remote repository: local > remote git push origin dev
## 8. Pull Request: github.com ## https://docs.github.com/pull-requests
Troubleshooting - Password Authentication Failure
## remote: Support for password authentication was removed on August 13, 2021.
## Login to GitHub ## Settings > Developer settings > Personal access tokens (classic) > Generate new token (classic) ## Use generated token as a password
Troubleshooting - Private Email Error
## remote: error: GH007: Your push would publish a private email address. ## remote: You can make your email public or disable this protection by visiting: ## remote: http://github.com/settings/emails
## Login to GitHub ## Settings > Emails > Block command line pushes that expose my email = Off
References
https://qiita.com/shimotaroo/items/ed08d76447144d566637
https://qiita.com/konweb/items/621722f67fdd8f86a017
https://qiita.com/samurai_runner/items/7442521bce2d6ac9330b
https://tech-blog.rakus.co.jp/entry/20200529/git
https://ios-docs.dev/20210813support-for-password/
https://qiita.com/setonao/items/28749762c0bc1fbbf502
https://qiita.com/atsymd/items/a1ff5a496b78f47ce80e
https://zenn.dev/kaluna_hart/articles/github-email-error
Acknowledgments
Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!
Daiphys Technologies LLC - https://www.daiphys.com/