-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgh_get_clone_url.Rd
38 lines (32 loc) · 1.04 KB
/
gh_get_clone_url.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{gh_get_clone_url}
\alias{gh_get_clone_url}
\title{Get Clone URL for a Repository}
\usage{
gh_get_clone_url(path, clone_type = "HTTPS")
}
\arguments{
\item{path}{GitHub repo path of the form "{username}/{repo}". If not
provided, will default to current repo.}
\item{clone_type}{Method to clone remote repositories with. Default is
"HTTPS". "SSH" and "GitHub CLI" are also supported. See
\url{https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories}
for more details.}
}
\value{
A cloning URL corresponding to the GitHub repo suppliied by the
'path' argument.
}
\description{
This function is a basic utility tool for getting a remote repository's
cloning URL. This is especially helpful when creating an RStudio Project from
a repository hosted on GitHub.
}
\examples{
\dontrun{
# Create a Private Repo
gh_repos_create(path = "jdtrat/ghee_test", private = TRUE, description = "A test repository.")
gh_get_clone_url("jdtrat/ghee_test")
}
}