Git

发布时间 2023-11-26 17:41:47作者: grdiv

上传本地项目到github仓库

1: 本地项目提交

git init
touch .gitignore   # 忽略文件
git add xxx          # 暂存区
git commit -m "xxx" # 本地仓库

2:github 新建仓库

手动新建一个respository即可

3:关联远程仓库

git remote add origin https://github.com/grdiv/ipm-reconstruct.git # 建立本地与远程连接

4:推送

git push -u origin master # 推送本地到远程的master分支