avatar
文章
127
标签
55
分类
11

Home
Categories
About
Shona's Blog
Home
Categories
About

Shona's Blog

shell脚本相关事件
发表于2021-06-23|ubuntu|ubuntu•shell
shell获取git相关信息12345678910111213141516171819202122232425#!/bin/bash# 返回$1指定的git项目的当前分支(branch)或标签名(tag)# $1 git项目源码位置,为空获则默认为当前文件夹function current_branch() { local folder="$(pwd)" [ -n "$1" ] && folder="$1" git -C "$folder" rev-parse --abbrev-ref HEAD | grep -v HEAD # git -C "$folder" describe --tags --abbrev=8 --dirty --always # git -C "$folder" rev-parse --abbrev-ref HEAD | grep -v HEAD || \ # git -C &quo ...
CMakeLists交叉编译
发表于2021-06-15|ubuntu|arm•Linux•CMakeLists
CMakeLists交叉编译相关...
cpp常用功能
发表于2021-05-10|cpp|cpp
c++开发中可能用到功能记录...
git merge和gith rebase
发表于2021-04-28|git|git
git merge和gith rebase的使用
git lfs管理大文件
发表于2021-04-02|git|git
git lfs管理大文件
git标签
发表于2021-03-24|git|git
添加tag
linux添加开机启动项
发表于2021-03-23|ubuntu|linux
linux添加开机启动项Linux系统启动时加载的配置文件有:/etc/profile、/root/.bash_profile、/etc/bashrc、/root/.bashrc、/etc/profile.d/*.sh、/etc/profile.d/lang.sh、/etc/sysconfig/i18n、/etc/rc.local(/etc/rc.d/rc.local) 添加自定义开机启动项的方式有: 修改开机启动文件/etc/rc.local(或者/etc/rc.d/rc.local)在文件末尾(exit 0之前)加上开机需要启动的程序或执行的命令。执行的程序需要写绝对路径,除非已经添加到了环境变量,比如: 1/usr/demo & 自己写一个shell脚本将写好的脚本(.sh文件)放到目录/etc/profile.d/下,系统启动后会自动执行该目录下的所有shell脚本。 123cd /etc/profile.d/touch demo.shvi demo.sh 添加启动命令: 12#!/bin/sh/usr/demo 通过chkconfig命令设置将启动文件demo拷贝 ...
qtcreator代码使用git信息
发表于2021-03-15|qt|git•qt
c++中使用git相关信息管理工程版本号
1…789…16
avatar
Shona
我在过去,我在现在,我在将来
文章
127
标签
55
分类
11
Follow Me
分类
  • backend10
  • coding34
  • cpp19
  • demo1
  • git11
  • hexo4
  • knowledge1
  • mine1
  • 查看更多
标签
CMakeLists Linux arm backend c++ c++11 c++20 cmake coding coredump cpp cpu database dns docker doxygen folder gdb git gitbook github page grpc guidance hard hexo innosetup json leetcode linux log markdown mermaid mine nfs oh myzsh opencv password process protobuf qml
归档
  • 六月 20234
  • 五月 20232
  • 四月 20231
  • 二月 20231
  • 十二月 20221
  • 十一月 20221
  • 十月 20221
  • 九月 20222
  • 查看更多
网站资讯
文章数目 :
127
本站访客数 :
本站总访问量 :
最后更新时间 :
©2020 - 2023 By Shona
江河回望