如何上传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
相关推荐
1024小神12 小时前
tauri2应用添加系统托盘Tray
tauri·pakeplus
不做无法实现的梦~3 天前
使用ros2跑mid360的fastlio2建图
git·单片机·嵌入式硬件·gitcode
熊猫钓鱼>_>6 天前
【开源鸿蒙跨平台开发先锋训练营】DAY 2 React Native for OpenHarmony 开发笔记与实战指南
react native·开源·harmonyos·arkts·openharmony·gitcode·atomgit
时光慢煮9 天前
Flutter 编译开发 OpenHarmony 全流程实战教程-基于开源仓库GitCode 搜索工具 v1.0.3 的跨平台实践
flutter·开源·gitcode
2301_7657151412 天前
2024 GitCode开源共创大会暨G-Star嘉年华,共启开源新征程
开源·gitcode
学海无涯,行者无疆13 天前
Tauri框架实战——鼠标左键单击托盘图标不显示菜单
人工智能·ai编程·tauri·trae·氛围编程·托盘功能·托盘点击
猫头虎13 天前
2026最新|GitHub 启用双因素身份验证 2FA 教程:TOTP.app 一键生成动态验证码(新手小白图文实操)
git·开源·gitlab·github·开源软件·开源协议·gitcode
学海无涯,行者无疆15 天前
把 Web App 装进客户端——Tauri框架实战:托盘功能、消息通知、构建安装程序
electron·tauri·单例运行·web应用客户端化·托盘通知·tauri实战·tauri框架
Mr -老鬼16 天前
Electron 与 Tauri 全方位对比指南(2026版)
前端·javascript·rust·electron·nodejs·tauri
红目香薰16 天前
GitCode-我的运气的可量化方案-更新v5版本
人工智能·开源·文心一言·gitcode