概述Git是一款强大的分布式版本控制系统,广泛应用于软件开发领域。本文将详细介绍Git一些基础命令,以便更好掌握这款工具。
一、Linux下安装Git
更新系统软件包首先,打开终端,更新系统软件包:12sudo yum updatesudo yum install -y git
验证安装安装完成后,可以通过以下命令验证Git是否安装成功:1git --version
如果返回Git的版本信息,说明安装成功。
二、Git常用操作及命令
配置用户信息 在使用Git之前,需要配置用户信息: 12git config --global user.name "您的名字"git config --global user.email "您的邮箱"
初始化仓库在本地创建一个新仓库:1git init
克隆远程仓库克隆一个远程仓库到本地:1git clone [仓库地址]
添加文件到暂存区将工作区的修改添加到暂存区:1git add [文件名]
提交更改将暂存区的修改提交到仓库:1git commit -m "提交信息"
推送到远程仓库将 ...
CentOS下面的NodeJS和npm安装123456789101. sudo yum install -y curl2. curl -fsSL https://rpm.nodesource.com/setup_23.x -o nodesource_setup.sh3. sudo bash nodesource_setup.sh4. sudo yum install -y nodejs5. node -v6. sudo yum install -y npm7. npm -V8. npm install -g npm@11.0.0
Unity反编译步骤
下载https://github.com/Perfare/AssetStudio根据自己的机器安装下载对应版本
下载https://github.com/krapnikkk/fgui-restore
导出所有的assets文件
把第二部导出的TextAsset和Texture2D资源导入到一个目录里面
在fgui-unpack目录下面执行 node restore 这个命令举例: E:\MzWork\Git\unity\fgui-unpack>node restore E:\opt\fanby\RichRoll\WLFBY\AIQustion_fui.bytes E:\opt\fanby\output
其他的事情 其他的https://mp.weixin.qq.com/s/tOtbGfy6Tin8MEvcMd9eLQ
MYSQL安装方法:123wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server
查看状态和启动:1234567systemctl start mysqld.service systemctl status mysqld.service grep "password" /var/log/mysqld.log 查看默认密码 mysql -uroot -p mysql> set global validate_password_policy=0; mysql> set global validate_password_length=1; mysql> ALTER USER 'root'@'localhost ...
Markdown 工具推荐 - 最强神器Typora 2024
教程步骤步骤一:下载并安装Typora
直接上官网点击下载安装就ok了,目前支持windows、mac、linux系统。官网地址:Typora 官方中文站 https://typoraio.cn/
步骤二:双击打开typora安装包
安装一定得记录下自己的安装地址,待会需要进入修改文件
直接点击finish
会出现一个激活的页面,这个先关闭掉
步骤三:开始修改文件
到此电脑中打开你的Typora安装路径 打开安装路径下这个文件夹你刚才选择的安装路径\resources\page-dist\static\js我的路径是:D:\exe\Typora\resources\page-dist\static\js
在这个文件夹中找到这个文件名称如下(其中有一段是随机生成的,比对开头和文件类型就好了):Licenselndex.180dd4c7.任意这里是随机的.chunk.js
右键用记事本或者用其他的文本编辑器打开123456将文件中的 e.hasActivated="true"==e.hasActiva ...
多标签把一篇文章同时归档到多个标签里面,通过任一个标签都能索引到我们的博文
可以通过以下方式实现 hexo 的多标签:
1234567# tags: #文章标签,可空,多标签请用格式[tag1,tag2,tag3],如下,注意!!"tags:"后面有个空格tags: [tag1, tag2, tag3, ...]# 下面这种方式似乎仅限于hexo 3.0tags:- tags1- tags2- ...
分级目录Hexo不支持指定多个同级分类。可以通过以下方式实现 hexo 的分级目录:
12345# 这种方式似乎仅限于hexo 3.0,应该包括以上吧...categories:- tags_level_1- tags_level_2- ...
但是值得注意的是,你使用的主题需要支持分级目录才行
是否有附属图片如果有附属图片,打开blog根目录里面的
12## 不是主题,是hexo的blog根目录post_asset_folder: true
这个功能需要您添加插件,如果已经安装,可忽略,如果没有安装需要
1npm install hexo-asset-image -- save
安装完成后,
1. 新建文章执行创建文章的命令
12## 在blog的根目录下面执行hexo new new-article
这时会在source/_posts/目录下面生成
new-article目录
new-article.md文件
2. 发布草稿草稿不会在博客上显示。在执行时加上 –draft 参数,或是把草稿中render_drafts参数设为true来预览草稿
1hexo new draft 草稿文件名
3. 发布稿件草稿不会直接显示到博客上面的,有两种方法发布草稿为正式文章
通过命令
1hexo publish 文章文件名
手工移动
手动将“_drafts”目录下的草稿移动到“_posts”目录下即可发布草稿为正式文章
4.添加导航1hexo new ...
12345678910# hexo new post <title># -p 参数可以指定文章的路径hexo new post -p hello/hello-world # 注意里面的title为post# 此时里面的title为hello-world# hexo new post title -p dir/filenamehexo new post hello-world -p hello/hello-world## 当然了手动将文章放到指定的文件夹中也可以
Brew的安装官网: https://brew.sh/zh-cn/
123/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/mac007/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
安装Ruby123brew install rubyecho 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrcsource ~/.zshrc
安装COCOAPODS1sudo gem install -n /usr/local/bin cocoapods
如果ac ...
把下面的代码保存为一个C#文件,放在Scripts的任何一个位置,即可掠过Unity的自带启动页比方说保存为:_SkipRunTimeLogo.cs
1234567891011121314151617181920212223242526272829303132#if !UNITY_EDITORusing UnityEngine;using UnityEngine.Rendering;using UnityEngine.Scripting; [Preserve]public class SkipUnityLogo{ [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)] private static void BeforeSplashScreen() {#if UNITY_WEBGL Application.focusChanged += Application_focusChanged;#else System.Threa ...










