Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed May 9, 2024
1 parent a53231c commit f614df8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev-note/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,13 @@ cherry-pick对子目录不太友好,会改变目录结构,迁移时更多选
## 打包

- git archive --format zip --output path/zipfile.zip branch-name

## ssh
```shell
sudo apt install ssh
ssh-kengen -t rsa -C "[email protected]" # 生成密码,需要两次输入密钥,及密码,把生产的公钥拷贝到github上
ssh -T [email protected] # 测试生成的是否连同
mkdir repo-foloder && cd repo-folder
git init
git remote add origin [email protected]:Username/Repositories_Name.git # 现在这样仓库就处理好了。
```

0 comments on commit f614df8

Please sign in to comment.