use full scripts for manage your projects.
by use this script you can clone all project by define folder structure, the following json model is use for define foldering structure:
[
{
"Directory":"your path",
"Projects":[{"FolderName":"name of your repo folder","Address":"github url"},{"FolderName":"name of your repo folder","Address":"github url"}],
"SubDirectory":[
{
"Directory":"your path",
"Projects":[],
"SubDirectory":[]
},
]
}
]
you can download sample here Easy-Microservice.json.
Tip: use multy-Line format comment /* your comment*/
for comment on your json file. dont use single line format comment //coment
.
by use this script you can Set your fork address and upstream address, infact this script replace your orgin with yor fork and set your old origin for your upstream, you can have follow option:
- $targetDir: allow you chose a root folder for run script.
[string]$targetDir="D:\\EasyMicroServices",
- $excludeRepos: allow you skip some folder name in your root folder, the script command dont run in this folders.
[string]$excludeRepos= "GitHub,Projects",
- $stopDir:the folder name where you stop go in deeps of directory: here is .git folder
[string]$stopDir= ".git",
- $yourFork:yourfork url specification
[string]$yourFork="mahdidelzendeh72",
- $upstreamFork: upstream fork url specification
[string]$upstreamFork="EasyMicroservices"
Easily update and synce your fork from upstream fork by one click!! you have foolow option
# $targetDir: refer to directory where you want run this script
[string]$targetDir,
# $excludeRepos: refer to folder name where you will not check by script
[string]$excludeRepos= "GitHub,Projects",
# $stopDir: the folder name where you stop go in deeps of directory: here is .git folder
[string]$stopDir= ".git",
# canUpdateAllBranches: =0 ==> not alloawed update other branches
# canUpdateAllBranches: =1 ==> alloawed update other branches
[bool]$canUpdateAllBranches= 0,
# canPushToOrigin: =0 ==> not alloawed push to orgin
# canPushToOrigin: =1 ==> alloawed push to orgin
[bool] $canPushToOrigin=0
Script for build all prtoject in directory .
# $targetDir: refer to directory where you want run this script
[string]$targetDir,
# $excludeRepos: refer to folder name where you will not check by script
[string]$excludeRepos= "GitHub",
# $stopDir: the folder name where you stop go in deeps of directory: here is .git folder
[string]$stopDir= ".git",
#find solution name
[string]$CompileProj1= ".sln"