早期版本的git , git add . 的时候不会把删除的文件加入索引 新版本的git add . 会把删除的也加入进去的 <pathspec>…? 要从中添加内容的文件。Fileglobs(例如 *.c)可以用来添加所有匹配的文件。此外,还可以提供一个前导目录名(例如,指定 dir 以添加 di ...
分类:
其他好文 时间:
2020-12-04 11:25:57
阅读次数:
6
原文 git基本小操作 git 查看全部配置 先查看本地的 config 配置文件内容 git config —list 看user.name和user.email都是别人配置好的 删除全局 config 配置 git config —global —unset configname 添加 conf ...
分类:
其他好文 时间:
2020-12-04 11:21:49
阅读次数:
5
分析netty从源码开始准备工作:1.下载源代码:https://github.com/netty/netty.git我下载的版本为4.1eclipse导入maven工程。netty提供了一个netty-example工程,分类如下:FundamentalEcho‐theverybasicclientandserverDiscard‐seehowtosendaninfinitedatastream
分类:
Web程序 时间:
2020-12-04 11:12:16
阅读次数:
8
原创宋宝华Linux阅码场2018-01-24本文目录Ftrace简介Ftrace案例Ftrace结果怎么读?vim进行Ftrace折叠Ftrace简介Ftrace是Linux进行代码级实践分析最有效的工具之一,比如我们进行一个系统调用,出来的时间过长,我们想知道时间花哪里去了,利用Ftrace就可以追踪到一级级的时间分布。Ftrace案例写一个proc模块,包含一个proc的读和写的入口。tes
分类:
其他好文 时间:
2020-12-04 11:03:14
阅读次数:
7
def problem(area=10): # 随机生成一道题目(自然数四则运算或分数运算),运算符不超过3个 try: if random.choice([1, 2]) == 1: # 随机生成 自然数或分数 的四则运算 expression, print_expression = natural ...
分类:
其他好文 时间:
2020-12-04 10:58:33
阅读次数:
8
目的:为了方便服务器上每次git拉去都需要填写密码,而又不想用ssh密钥的 1、在终端下执行 git config --global credential.helper store 2、查看 ~/.gitconfig文件,会多了一项: [credential] helper = store ...
分类:
系统相关 时间:
2020-12-04 10:57:17
阅读次数:
10
System.InvalidOperationException:“在显示 Window 或调用 WindowInteropHelper.EnsureHandle 之后,无法更改 AllowsTransparency。” 通常是由于遗忘了 窗体的初始化方法 InitializeComponent ...
分类:
其他好文 时间:
2020-12-03 12:30:19
阅读次数:
17
struct UFS { stack<pair<int*, int> > stk; int fa[maxn], rnk[maxn]; inline void init(int n) { for (int i = 0; i <= n; ++i) fa[i] = i, rnk[i] = 0; } inl ...
分类:
其他好文 时间:
2020-12-03 12:16:10
阅读次数:
7
给定一个二叉树,判断它是否是高度平衡的二叉树。 本题中,一棵高度平衡二叉树定义为: 一个二叉树每个节点 的左右两个子树的高度差的绝对值不超过 1 。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/balanced-binary-tree 著作 ...
分类:
其他好文 时间:
2020-12-03 11:59:09
阅读次数:
6
首先,要在vue ui 依赖中添加 再点开 ‘查看详情’去看使用方法 跳转到git网站 https://github.com/surmon-china/vue-quill-editor#readme 以下为使用说明 import Vue from 'vue' import VueQuillEdito ...
分类:
其他好文 时间:
2020-12-03 11:50:32
阅读次数:
5