A shorthand script to clone a repository default or specified branch
File Name : gitclone.ps1
Author : Adewale Azeez - iamthecarisma@gmail.com
Date : Mar-01-2020
A short compact command to quickly clone a repository. To clone a specific branch add the branch name as the second parameter. The default branch is clone by default if the branch name is not specified.
gitclone [-RepoUrl] <String> [[-Branch] <String>] [<CommonParameters>]
attr |
value |
---|---|
Required? |
true |
Position? |
1 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
attr |
value |
---|---|
Required? |
false |
Position? |
2 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
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).
System.String[]
git clone INFO
gitclone https://github.com/Thecarisma/Cronux.git
clone the Cronux repository The command is equivalent to git clone https://github.com/Thecarisma/Cronux.git
gitclone https://github.com/Thecarisma/Cronux.git gh-pages
clone the Cronux repository branch ‘gh-pages’ The command is equivalent to git clone -b gh-pages https://github.com/Thecarisma/Cronux.git