LoginSignup
0
0

【oh-my-zsh】ターミナルでpushしてないコミット数が表示されない問題

Last updated at Posted at 2023-11-02

環境

oh-my-zsh
powerlevel10k

目標

下記画像のようなリモートリポジトリにpushしていないコミット数が表示されない問題を解決

Screenshot 2023-11-02 at 9.39.46.png

解決

.git/config[branch "main"]の項目が必要でした。

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "origin"]
	url = 
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
	remote = origin
	merge = refs/heads/main
0
0
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
0
0