< Back

New-GitBonesRepo

Mon Jan 13, 2020 8:35 pm

NAME New-GitBonesRepo



SYNOPSIS

Creates a git repository skeleton directory based on GitBones or user templates.





SYNTAX

New-GitBonesRepo [-GitRepoUri] <String> [[-GitBonesName] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]



New-GitBonesRepo [-GitRepoUri] <String> [[-UserTemplateUri] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates a git project skeleton directory based on GitBones or user specified templates.

Users are able to leverage the GitBones Template library via BoneList command or supply

their own git project URI to clone their own git skeleton projects. Access to projects

to GitBones is based on HTTPS and all projects are open to the public. User template access

is reliant on the user having access to their specified templates through typical git

clone process and supports both HTTPS and SSH. If using SSH or HTTPS, user will be

prompted to authenticate if required. If access is denied, user should verify their

permissions.





PARAMETERS

-GitRepoUri <String>

Git Project SSH or HTTPS URL for new project



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GitBonesName <String>

The GitBones Project Name



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserTemplateUri <String>

The User Template Project URI



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-GitBonesRepo -GitRepoUri 'git@gitlab.com:rolston/test.git' `



-GitBonesName 'GitLab-CloudFormation'



Creates a project test in the present working directory using the GitBones

Template GitLab-CloudFormation









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>BonesInit -GitRepoUri 'git@gitlab.com:rolston/test.git' `



-GitBonesName 'GitLab-CloudFormation'



Example of using alias BonesInit to create a project titled test in the

present working directory using the GitBones Template GitLab-CloudFormation

and with a target user Git Project using HTTPS as remote origin









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>BonesInit -GitRepoUri 'https://gitlab.com/rolston/test.git' `



-Bones 'Gitlab-CloudFormation'



Using simplified BonesInit alias and Bones parameter to create a project using a

GitBones template GitLab-CloudFormation with a target user Git Project using

HTTPS as remote origin.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>BonesInit -GitRepoUri 'git@gitlab.com:rolston/test.git' `



-UserTemplate 'git@gitlab.com:rolston/mytemplate.git'



Using the user specified template, create a skeleton git project from the bones

of the template "mytemplate.git"









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>New-GitBonesRepo -GitRepoUri 'git@gitlab.com:rolston/test.git' `



-UserTemplate 'git@gitlab.com:rolston/mytemplate.git'



Using the user specified template with SSH, create a skeleton git project from the bones

of the template "mytemplate.git"









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>New-GitBonesRepo -GitRepoUri 'git@gitlab.com:rolston/test.git' `



-UserTemplate 'https://gitlab.com/rolston/mytemplate.git'



Using the user specified template with HTTPS, create a skeleton git project from the bones

of the template "mytemplate.git"











RELATED LINKS