如何上传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 [email protected]: 用户名/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 [email protected]: 用户名/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 [email protected]: 用户名/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
相关推荐
Bl_a_ck12 天前
git基础语法回顾
git·gitee·github·gitcode
小雪_Snow15 天前
Git和Gitcode交互教程
gitcode
不见兔子不撒鹰_17 天前
CSDN gitcode代码推送
gitcode
姜 萌@cnblogs20 天前
【实战】深入浅出 Rust 并发:RwLock 与 Mutex 在 Tauri 项目中的实践
前端·ai·rust·tauri
姜 萌@cnblogs1 个月前
开源我的一款自用AI阅读器,引流Web前端、Rust、Tauri、AI应用开发
rust·web·tauri·svelte
Acaibird.1 个月前
腾讯元宝桌面客户端:基于Tauri的开源技术解析
ai·electron·tauri·跨平台开发
若愚67921 个月前
Tauri 跨平台开发指南及实战:用前端技术征服桌面应用(合集-万字长文)
前端·vue.js·rust·gitcode
春蕾夏荷_7282977251 个月前
vscode 使用gitcode团队管理项目
vscode·gitcode
Zhillery1 个月前
Tauri快速入门1 - 搭设开发环境
typescript·前端框架·react·tauri
Rudon滨海渔村1 个月前
【Tauri】桌面程序exe开发 - Tauri+Vue开发Windows应用 - 比Electron更轻量!8MB!
javascript·electron·tauri·桌面应用