2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

powershellでgitを見やすくつかう

Last updated at Posted at 2022-01-28

git-bashでもいいけど、gitのためにgit-bashつかうのはだるいのでpowershellでもgitを見やすく使いやすくしたいということで調べた

結論: posh-gitを使うとよい

インストール

powershellに以下コマンドをいれる

PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force

このままだとposh-gitが適用されていないので、powershell profileに直接かコマンドで追記して変更を永続化する。

コマンドで追記(推奨)

powershellで実行
Add-PoshGitToProfile

直接追記

powershellprofileの場所を調べる.powershellで実行
$profile
\Users\yourname\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1に追記して上書き保存
Import-Module posh-git
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?