from
Assert.Equal\(([^,]+), ([[]\w\d\(\)\.]+)\);
To
#!/bin/bash | |
# 循环子目录,收缩git目录。清理历史记录,删除未引用提交, | |
# 并执行git reset --hard | |
for dir in */; do | |
cd "$dir" | |
if [ -d .git ]; then | |
echo "Resetting $dir" | |
git reset --hard | |
git prune | |
git gc |
<?xml version="1.0" encoding="utf-16"?> | |
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
<TypePattern DisplayName="COM interfaces" Priority="2000"> | |
<TypePattern.Match> | |
<And> | |
<Kind Is="Interface" /> | |
<Or> | |
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> | |
<HasAttribute Name="System.Runtime.InteropServices.ComImport" /> | |
</Or> |
v1.3 | |
/\*[ \s]Unmerged[^\*]*[\r\n]*\*/h | |
v1.2 | |
/\*[ \s]Unmerged[ \(\)\.\w'\r\n:;=<,>\[\]\{\}\+\?\|\-\!]*\*/ | |
v1.1 | |
/\*[ \s]Unmerged[ \(\)\.\w'\r\n:;=<,>]*\*/ | |
//Use `node --trace-deprecation webpack | |
process.traceDeprecation = true; | |
module.exports = { | |
// Your config | |
}; |
{"lastUpload":"2021-08-18T03:23:34.862Z","extensionVersion":"v3.4.3"} |
'use strict'; | |
/** | |
* Webpack Configuration File | |
* | |
* This is a configuration file for Webpack module bundler. You should customize | |
* it to fit your project. | |
* | |
* To start the development server run: | |
* |
最开始实习的时候是使用svn,之后正式工作就一直在使用git,这样算起来,使用git也有两年的时间了。以前带我的同事,让我在拉代码的时候要我使用git pull --rebase,一直很纳闷为什么要那样做,后来遇到拉代码的时候有许多冲突要解决,然后去查找资料,才了解到其中的一些事情。今天分享一下,顺便自己也梳理一下。
git pull
git pull 是 git fetch + git merge FETCH_HEAD 的缩写。所以,默认情况下,git pull就是先fetch,然后执行merge 操作,如果加–rebase 参数,就是使用git rebase 代替git merge。
merge 和 rebase
merge 是合并的意思,rebase是复位基底的意思。
$.extend(String.prototype, { | |
toFloat: function() { | |
return parseFloat(this); | |
}, | |
toInt: function() { | |
return parseInt(this); | |
}, | |
startsWith: function(str) { | |
return this.slice(0, str.length) == str; | |
}, |
$.extend(Number.prototype, { | |
toString: function(num) { | |
if(isNaN(num)) num = 2; | |
return this.toFixed(num); | |
} | |
}); |