on Terminal?
Once I used git clone [the github addresss] and moved to that directory,
I typed git config -e and it shows a list of branch
[core]
repositoryformatversion = 0
filemode = ture
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote “origin”]
url = [the GitHub address]
fetch = +refs/heads/*:refs/remotes/origin/*
[branch “main”]
remote = origin
merge = refs/heads/main
“~/[the relative path]/.git/config” 13L, 320B
but I don’t know how to make the terminal to show what brach where I’m in.
git status
Isn’t it supposed to show the branch name when you use cd [the GitHub address]?
Yes. But it’s now supposed to be main not master since GitHub has changed their setting recently.
https://github.com/romkatv/powerlevel10k
Обсуждают сегодня