`devtools::install_github()` - which version?

Possibly a silly question, but when utilizing devtools::install_github() to install a development version of a package - which version is installed? Is it just the current version on the main branch? Or is it the most recent github release? thanks all!

I believe the default is to get the HEAD of main, but you can pass other parameters to get to subdirectories, branches, release tags, even specific commits.

see the usage section here for examples:
r-lib/remotes: Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs

awesome, thank you!!!