使得pbcopy输出一份到屏幕以供check

This commit is contained in:
hophacker 2019-02-22 11:23:20 +08:00
parent 37a4f2d8ae
commit d654041a48

View File

@ -147,5 +147,5 @@ function gitcopy() {
done
repo=`git remote get-url origin | sed -E 's/.*:(.*)\.git/\1/'`
project_name=`echo $repo | sed -E 's/.*\/(.*)/\1/'`
git log $commit --pretty="* [$project_name](https://github.com/$repo/commit/%H) %an: **%s**" | head -n $n | tee | pbcopy
git log $commit --pretty="* [$project_name](https://github.com/$repo/commit/%H) %an: **%s**" | head -n $n | tee >(pbcopy)
}