grgit-open
Synopsis
Grgit.open()
Grgit.open(dir: <path>, currentDir: <path>, credentials: <credentials>)
Grgit.open {
dir = <path>
currentDir = <path>
credentials = <credentals>
}
Description
This command opens an existing Git repository. If both dir
and currentDir
are null
, acts as if the currentDir
is the JVM’s working directory.
Returns a Grgit instance.
Options
- dir
-
(
Object
, defaultnull
) The directory the repository is in. Can be aFile
,Path
, orString
. - currentDir
-
(
Object
, defaultnull
) The directory to start searching for the repository from. Can be aFile
,Path
, orString
. - credentials
-
(
Credentials
, defaultnull
) An instance of Credentials containing username/password to be used in operations that require authentication. See grgit-authentication for preferred ways to configure this.