[llvm-dev] Question about state of the repository

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 28 11:41:49 PST 2020


Aha. Now I understand. All set. I'm surprised I didn't notice this before.

Thanks for your help!

At 12/28/2020 02:36 PM, Mehdi AMINI wrote:
>On Mon, Dec 28, 2020 at 11:30 AM Paul C. Anagnostopoulos <<mailto:paul at windfall.com>paul at windfall.com> wrote:
>Hmm. Thanks for sticking with me here. I believe origin/HEAD already points to main.
>
>>git remote show origin
>* remote origin
>Â  Fetch URL: <https://github.com/llvm/llvm-project.git>https://github.com/llvm/llvm-project.git
>  Push  URL: <https://github.com/llvm/llvm-project.git>https://github.com/llvm/llvm-project.git
>Â  HEAD branch: main
>
>Or do I misunderstand that display?
>
>This is querying the remote to get the current remote state, i.e. what is set when you clone. This does not show the local state, you can try: cat .git/refs/remotes/origin/HEAD
>Then run git remote set-head origin main and check again.
>You can also run git remote set-head origin -a instead, it'll query the remote the same way as you see with git remote show origin and set it to main as well.



More information about the llvm-dev mailing list