Skip to content

VincentZyuApps/git-vv-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-vv-script

git-vv

一个自定义的 Git 可视化命令,输出 5 行彩色日志。

安装

Windows (PowerShell)

  1. 打开 PowerShell 配置文件:
notepad $PROFILE

如果提示文件不存在,先运行:

New-Item -Path $PROFILE -Type File -Force
  1. git-vv.ps1 的全部内容复制粘贴到 $PROFILE 文件中,保存关闭。

  2. 刷新生效:关掉终端重开,或执行:

. $PROFILE
  1. 用法:在任意 Git 仓库目录下输入 gvv 即可。

Linux (Bash)

  1. 复制脚本到系统命令目录:
cp git-vv.sh /usr/local/bin/git-vv
chmod +x /usr/local/bin/git-vv
  1. 如需简短别名 gvv,编辑 ~/.bashrc
echo "alias gvv='git-vv'" >> ~/.bashrc
source ~/.bashrc
  1. 用法:在任意 Git 仓库目录下输入 gvvgit-vv

跨平台在线运行(Python)

无需安装脚本,直接通过管道运行:

GitHub

Linux/macOS:

curl -sL https://raw.githubusercontent.com/VincentZyu233/git-vv-script/main/git-vv.py | python3

Windows PowerShell:

irm https://raw.githubusercontent.com/VincentZyu233/git-vv-script/main/git-vv.py | python

Gitee

Linux/macOS:

curl -sL https://gitee.com/vincent-zyu/git-vv-script/raw/master/git-vv.py | python3

Windows PowerShell:

irm https://gitee.com/vincent-zyu/git-vv-script/raw/master/git-vv.py | python

快捷使用

Linux 可加别名到 ~/.bashrc

echo "alias gvvp='curl -sL https://raw.githubusercontent.com/VincentZyu233/git-vv-script/main/git-vv.py | python3'" >> ~/.bashrc
source ~/.bashrc

Windows 可在 $PROFILE 中添加函数:

function gvvp { irm https://raw.githubusercontent.com/VincentZyu233/git-vv-script/main/git-vv.py | python }

About

✨ git-vv-scripts 🎨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors