如何上传tauri项目到csdn gitcode

如何上传tauri项目到csdn gitcode

首先保证项目目录有.gitignore,避免不必要的文件上传分享。

gitignore文件

bash 复制代码
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

上传到csdn gitcode

如下图分两步操作

网站端

首先在gitcode站点新建项目,如下图所示

创建完项目,会自动跳转到项目页面,点击切换SSH,本文采用SSH方式上传项目

SSH上传需要配置密钥,生成 SSH Key

本地端

你还可以按照以下说明从你的电脑中上传现有文件或项目。

bash 复制代码
cd tauri-app
git init

Git 项目设置

bash 复制代码
git config --local user.name " 用户名"
git config --local user.email " 用户名@noreply.gitcode.com"

创建一个新仓库

bash 复制代码
git clone git@gitcode.com: 用户名/tauri-app.git
cd tauri-app
echo "# tauri-app" >> README.md
git add README.md
git commit -m "add README"
git branch -m master
git push -u origin master

推送现有的文件

bash 复制代码
cd existing_folder
git init
git remote add origin git@gitcode.com: 用户名/tauri-app-001.git
git add .
git commit -m "Initial commit"
git branch -m master
git push -u origin master

推送现有的 Git 仓库

bash 复制代码
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitcode.com: 用户名/tauri-app.git
git push -u origin --all
git push -u origin --tags

gitcode发布

Git基础 - git tag 一文真正的搞懂git标签的使用

bash 复制代码
# 创建附注标签
git tag -a v0.0.1 -m "创建tauri V1 应用模板"
# 将指定的标签上传到远程仓库
git push origin v0.0.1
相关推荐
国服第二切图仔2 天前
基于文心开源大模型ERNIE-4.5-0.3B-Paddle私有化部署并构建一个企业智能客服系统
百度·开源·智能客服·知识库·文心大模型·paddle·gitcode
LucianaiB4 天前
百度开源文心4.5系列开源21款模型,实测 ERNIE-4.5-VL-28B-A3B-Paddle 多项评测结果超 Qwen3-235B-A22B
百度·开源·文心大模型·paddle·gitcode
wei_shuo4 天前
百度开源文心 4.5 系列开源大模型 GitCode 本地化部署,硅基流动:文心 vs. DeepSeek vs. Qwen 3.0 深度测评
百度·开源·文心大模型·gitcode
国服第二切图仔5 天前
文心开源大模型ERNIE-4.5-0.3B-Paddle私有化部署保姆级教程及技术架构探索
百度·架构·开源·文心大模型·paddle·gitcode
Qiuner5 天前
【源力觉醒 创作者计划】开源、易用、强中文:文心一言4.5或是 普通人/非AI程序员 的第一款中文AI?
人工智能·百度·开源·文心一言·gitcode
musk12127 天前
electron 打包太大 试试 tauri , tauri 安装打包demo
前端·electron·tauri
海拥✘7 天前
文心一言开源版测评:能力、易用性与价值的全面解析
百度·开源·文心大模型·gitcode
景川呀23 天前
【ClipPal】推荐一个非常好用的粘贴板记录工具
tauri·粘贴板·粘贴板工具