使得pbcopy输出一份到屏幕以供check
This commit is contained in:
parent
37a4f2d8ae
commit
d654041a48
@ -147,5 +147,5 @@ function gitcopy() {
|
|||||||
done
|
done
|
||||||
repo=`git remote get-url origin | sed -E 's/.*:(.*)\.git/\1/'`
|
repo=`git remote get-url origin | sed -E 's/.*:(.*)\.git/\1/'`
|
||||||
project_name=`echo $repo | sed -E 's/.*\/(.*)/\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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user