使用vscode打开项目,首先确认git工作区是否是干净的

git status

创建一个新的分析,存放一个功能,等所有的功能都开发完成后,再进行合并(master)

创建一个login git 分支

git checkout -b login

查看当前项目的所有分支

git branch

* login 带*表示当前所处的分支
  main

提交代码

git status
git add . 添加到暂存区
git commit -m "完成了登录功能"

git branch 查看当前的分区:*login
合并分支:把login分支合并到master中
git checkout master 切换到master分支
git branch 查看当前的分区:*master
git merge login 合并login到master

远程推送 master
git push

将本地的login推送
git checkout login
git branch 查看当前的分区:*login
第一次推送login
git push -u origin login

打包版本

git tag -a 包名 -v '备注'
git tag -a v1.0.0.0 -m 'veresion:v1.0.0.0' 

查看所有 git tag 
推送
git push
posted @ 2021-11-08 16:02 成强 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Save Actions X 代码自动格式化插件 CodeGlance Pro 代码缩略图 EasyCode 默认模版生成 CodeGeeX 代码自动补全 阅读全文
posted @ 2024-12-18 10:19 成强 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 在 C++ 中,static 和非 static 的变量在作用域、生命周期和初始化方面有一些重要的区别。下面详细解释这两种变量的不同之处: 非 static 变量 int i0 = 123; 作用域:变量 i0 的作用域是它所在的代码块或函数。它只能在定义它的代码块内访问。 生命周期:每次进入代码块 阅读全文
posted @ 2024-08-05 15:11 成强 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.中文字体库导入乱码问题 1.修改clion中的文件编码配置 2.按住 Ctrl+Shift+Alt+/,选中Registry…,然后取消run.processes.with.pty 3.cmakelist.txt导入字体文件,注意不要加u8了,不然会乱码 #字体文件 include_direct 阅读全文
posted @ 2024-07-26 22:49 成强 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 字符串 #include <stdio.h> #include <malloc.h> #include <stdbool.h> #define MaxSize 100 /*静态串的定义*/ typedef struct{ /*串的最大长度+ 一个'\0',并且从下标1开始存储*/ char cha[ 阅读全文
posted @ 2024-07-21 16:04 成强 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*链式队列的节点*/ typedef struct LinkNode{ /*数据域*/ ElemType data; 阅读全文
posted @ 2024-07-13 12:37 成强 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; #define MaxSize 50 /*顺序队列的类型定义*/ typedef struct { /*用一维数组存放队 阅读全文
posted @ 2024-07-12 23:01 成强 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 修改导入方式 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const {proxy} = getCurrentInstance(); 改为 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const proxy = getCurrentIn 阅读全文
posted @ 2024-07-12 09:38 成强 阅读(874) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*栈的链式存储类型*/ typedef struct StackNode{ /*数据域*/ ElemType data; /*指针域* 阅读全文
posted @ 2024-07-10 17:24 成强 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /**/ #define MaxSize 50 /**/ typedef struct { ElemType data[MaxSize] 阅读全文
posted @ 2024-07-10 17:23 成强 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个双链表 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /* 定义一个单链表 */ typedef struct DNode { /*数据域*/ ElemType data 阅读全文
posted @ 2024-07-08 00:31 成强 阅读(17) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示