2024年11月24日星期日 上午5:54:59

git 2

1 年 前
#20256 引用
git Sharing your configuration on GitHub



I had an install of HA with final Database size of 53GB. I have decided to make a fresh install and restored my back up
0
1 年 前
#20257 引用
背景

原来装的ha core 20221103 运行正常,git 到了github.com

新装了ha core 20230202    想延续 原来的git 项目

思路

way 1:

先拉取原来的项目到本地

再push 本地项目上传

way 2: copy olg git dir and files to new ha
0
1 年 前
#20258 引用
工作清单

1.备份现有配置
0
1 年 前
#20259 引用



cd /home/homeassistant20230202/.homeassistant

0
10 个月 前
#28397 引用
20240120

Support for password authentication was removed

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/m/Home-AssistantConfig20221103.git/'

There are several ways to clone repositories available on GitHub.com

GitHub repositories using HTTPS
Connecting to GitHub with SSH



You can only push to two types of URL addresses:


An HTTPS URL like https://github.com/user/repo.git
An SSH URL, like [email protected]:user/repo.git


source:https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
0
10 个月 前
#28398 引用
How to Fix “Support for password authentication was removed” error in GitHub

Option 1: Create and  paste a Personal Access Token (PAT)  as your password - paste your PAT as your password.

Option 2: Use an SSH URL  


https://collabnix.com/how-to-fix-support-for-password-authentication-was-removed-error-in-github

Option 1:

When Git prompts you for your password, enter your personal access token.

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
source:https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls


Option 2:
Connecting to GitHub with SSH
0
10 个月 前
#28399 引用
Generate new token (classic)

step 1:Login to your GitHub account. Go to Settings.

https://github.com/settings/profile

Select “Developer settings,” and then “Personal access tokens.”

select the “Generate new token” button

select tokens(classic)

Generate new token (classic)

Copy the token and paste as your password.

menu path:

Settings/Developer Settings/Personal access tokens/Tokens (classic)/Generate new token (classic) 
      





0
10 个月 前
#28400 引用
Select “Developer settings,”

https://github.com/settings/apps
0
10 个月 前
#28401 引用
1
0
10 个月 前
#28402 引用
Git push always asking username and password

git config --global credential.helper store
0