git: add --with-persistent-https option

Closes #24153.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>