如何上传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
相关推荐
q平面人15 小时前
【总工笔记】mindoc平板、桌面端笔记软件,发布到mindoc服务端
rust·tauri·华为平板·mindoc·总工笔记
MC皮蛋侠客17 小时前
Tauri 2.x 系列(九):安全模型——Capabilities、Permissions、Scope 与 CSP
rust·tauri
MC皮蛋侠客3 天前
Tauri 2.x 系列(八):与其他语言结合——Sidecar、服务、FFI 与插件的选择
rust·tauri
MC皮蛋侠客3 天前
Tauri 2.x 系列(四):窗口、菜单、托盘与应用生命周期——做出真正的桌面体验
rust·tauri
MC皮蛋侠客3 天前
Tauri 2.x 系列(一):架构全景与最小闭环——从 WebView 到 EMS 后台
架构·rust·tauri
猫头虎3 天前
GitHub 入门教程:如何加入并为开源项目贡献代码
gitee·开源·gitlab·github·开放原子·开源协议·gitcode
MC皮蛋侠客3 天前
Tauri 2.x 系列(二):项目结构与前端框架——Vue、React 如何成为桌面前台
rust·tauri
zhangfeng11336 天前
CANN 社区任务提交 PR 踩坑与修复全记录(GitCode 平台)
大数据·elasticsearch·gitcode
特立独行的猫a9 天前
仓颉版 Tauri:给鸿蒙铺一条 Web 开发者的路
前端·华为·harmonyos·tauri·仓颉
特立独行的猫a11 天前
Rust + Tauri实现一棵「习惯树」:创意应用 从 Grove 的灵感说起
开发语言·后端·rust·tauri·习惯树·创意应用