- 創建文件夾 project
- git --config --global user.name “xxxx”
- git --config --global user.email "[email protected]"
- git init 初始化
- cd ~/.ssh/ 查看是否含有id_rsa文件,沒有則生成一個,或者拷貝一份
- git clone addr 克隆代碼
- 如果報錯 “WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for ‘/home/lgsh/.ssh/id_rsa’ are too open.”,那麼需要降低 id_rsa密鑰文件的權限: chmod 700 id_rsa
- cd /project/.git/ 拷貝一份commit-msg
Git 克隆代碼
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
git常用命令小計
wchyumo2009
2020-07-08 12:20:37
centos7源碼安裝kong分佈式網關實踐
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
幽默龙
2020-07-08 12:31:24
Desire rom - build kernel
dkyang
2020-07-08 12:22:51
八、SpringCloud——Config 分佈式配置中心Demo
仁钦宝
2020-07-08 11:45:52
centos 7 下 gitlab-runner 自動 CI/CD (持續集成/持續部署) 配置
你个大猪蹄子
2020-07-08 11:16:39
Gerrit status Merge conflict 解決
liuskyter
2020-07-08 11:16:26
git 本地庫的操作
yue_zhong
2020-07-08 11:09:17
idea配置Git上傳代碼到Gitlab
leo_gothic
2020-07-08 10:42:16
Git::取消跟蹤文件&&重新跟蹤
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
dieju8330
2020-07-08 10:35:13
[轉載]::Github進行fork後如何與原倉庫同步
dieju8330
2020-07-08 10:35:13
git異常:fatal: 'idea-line-2' is not a commit and a branch 'idea-line-2' cannot be created from it
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line
Danny_idea
2020-07-08 09:57:37
gitignore的使用
ynd_sg
2020-07-08 09:20:23
git克隆或下載倉庫中的某一個文件夾
ynd_sg
2020-07-08 09:20:23
Git 實用命令--持續更新
Joker_PL
2020-07-08 09:11:56