Git(Hub)

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>
## Configure User Information
git config --global user.email "12345678+[username]@users.noreply.github.com"
git config --global user.name "[username]"
## 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

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!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2023/09/04 01:25
  • by Daiphys