How to clone the laest branch

I am trying to clone the “latest” branch from git for the brave-brower.
I have tired git clone --branch="latest" https://github.com/brave/brave-browser.git ./gitrepos/brave-browser but latest doesn’t clone anything. I need to specify --branch=v1.45.118 or whatever the current version is.
Is there a way to specify the “latest” branch in a clone?

I want to run this command: https://stackoverflow.com/a/5143914/3314953 to check if I have the latest version every few days so I can update brave every time the “latest” tag is pointing to a new branch.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.