git设置、PowerShell 插件 posh-git 安装、可视化界面的项目版本控制软件,适用于git项目管理

Git 设置

# 设置提交时的用户信息
git config --global user.name "用户名"
git config --global user.email "邮箱"

# 禁用git自动LF转CRLF
git config --global core.autocrlf false

# 生成密钥(默认文件名id_rsa)
# -t 密钥类型
# -C 注释
ssh-keygen -t rsa -C "邮箱"

PowerShell 插件 posh-git 安装

VSCode 默认使用PowerShell,启动powershell,分别执行下面3个命令(提示都输入Yes)
# 1.设置权限
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm

# 2.使用PowerShellGet安装
PowerShellGet\Install-Module posh-git -Scope CurrentUser

# 3.全局导入posh-git
Add-PoshGitToProfile -AllHosts

SourceTree拥有可视化界面的项目版本控制软件,适用于git项目管理

  基本使用:https://www.cnblogs.com/tian-xie/p/6264104.html

posted on 2018-04-04 11:20  道法自然-法力无边  阅读(1829)  评论(0编辑  收藏  举报

导航