如何上传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
相关推荐
余识-5 天前
古竹:将时间化作最有价值的投资
金融·rust·业界资讯·tauri·投资·基金
weixin_704266055 天前
IDEA 整合 Git 并上传代码到 CSDN GitCode 超详细教程
git·intellij-idea·gitcode
小杍随笔5 天前
【Tauri 2 + Rust 配置 WebView2 缓存数据存储到安装目录】
开发语言·后端·rust·tauri
芳草萋萋鹦鹉洲哦6 天前
【tauri】为什么接口通信选择invoke而不是Axios
rust·axios·tauri·invoke
云渊未归067 天前
Python获取GitCode项目信息
python·数据分析·开源·网络爬虫·gitcode
小妖6668 天前
用 tauri + vuepress 写的 地藏经 网站和安卓端
tauri·vuepress
小妖66610 天前
怎么用 tauri 创建编译 android 应用程序
android·tauri
Mr数据杨12 天前
AIGC工具平台-ASR通用音频转文本
tauri·ai工具
Mr数据杨12 天前
AIGC工具平台-文稿配音混剪素材视频
tauri·ai工具
本地化文档12 天前
rust-nomicon-l10n
rust·github·gitcode