Initialisalepaquet: creates the .git initial folder on the machine

View source: R/Initialiselepaquet.R

InitialisalepaquetR Documentation

creates the .git initial folder on the machine

Description

creates the .git initial folder on the machine

Usage

Initialisalepaquet(
  paquet,
  remoterepohostingplatform = "github.com",
  account,
  user.name = NULL,
  user.email = NULL
)

Arguments

remoterepohostingplatform

: character string. Indicates the remote repo hosting platform. "github.com" or "gitlab.com" for example

account

: character string the command line will be 'paste0("git remote add origin git@",remoterepohostingplatform,":",account,"/",paquet,".git")

user.name

: character string . if not NULL, and init=TRUE, system(paste0('git config user.name "',user.name,'"')

user.email

: character string . if not NULL, and init=TRUE, system(paste0('git config user.email "',user.email,'"'))

paquet:

the package name.

gitaccount

: by default paste0(remoterepohostingplatform,":",account)

Details

Running [Initialisalepaquet(paquet="XXX", remoterepohostingplatform="github.com", account="Tata", user.name="Tata Tutu", user.email="TataTutu@toto.com")] is equivalent of executing in the working directory: git init git confing user.name "Tata Tutu" git confing user.email "Tata@gmail.com" git init git remote add origin git@github.com:Tata/XXX.git

Value

nothing


DanielBonnery/EspleitsPelsPaquets documentation built on April 26, 2022, 9:37 a.m.