Sno*_*ash 3 windows git powershell
这样做:
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
Run Code Online (Sandbox Code Playgroud)
正如在 Windows 机器上提到的那样,只给了我这个错误:
usage: git config [options]
Run Code Online (Sandbox Code Playgroud)
当我尝试跑步时git hist。有什么建议吗?为什么它不起作用?
hist我无法选择将别名添加到的命令git。但我直接将它插入到.gitconfig通常位于"C:\Users\<login name>\"或 的文件中"C:\Documents and Settings\<login name>\"。
查看我的.gitconfig文件片段,并记下对别名进行的更改,hist以便它在 Windows 下正常工作。
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = !git --no-pager log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2095 次 |
| 最近记录: |