0%

git

将项目上传至github

查看本地是否存在SSH密钥

ls -al ~/.ssh

私钥 id_rsa 公钥 id_rsa.pub即是github中配置的SSH

测试是否成功配置github

ssh -T git@github.com

image-20220822132233415

在github上新建repository

image-20220822133050067

进入到项目目录,输入init命令

cd /Users/jiangangkong/workSpace/pycharmWorkSpace/django01
git init

image-20220822133634551

在该项目根目录中add并且commit

git add .
git commit -m "first commit"

image-20220822134151019

上传github

git remote add origin git@github.com:kjgggggg/django01.git
git branch -M main
git push -u origin main

image-20220822134347195

从github上拉取项目

在本机上创建文件夹

image-20221130152726194

在此目录下clone

cd CMU-15445
git clone https://github.com/cmu-db/bustub.git