You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Place to put newly created Repos; these multiple repos come from the many directories listed in the $DirectoryListingFile
NewContainingDir="/ZenossCommunity/"
# Username you want this uploaded to github as
GitHubUserName=""
# Instead of a password, you can register your applications with Tokens; Create this in the github.com preferences
GitHubToken=""
# Where you want the Submodules to end up; This could reference a different repo than the ParentRepo, if you want the submodule link to show in a different repo from the original parent repo
echo -e "\n# 6) Push new local repo to new github repo"
# was having issues with #6 loading and stopping execution; put in artificial pause to prevent it
sleep 3
git push origin master
# 7) Create submodule reference
echo -e "\n# 7) Create submodule reference"
cd$SuperprojectPath
git submodule add git://github.com/$GitHubUserName/$NewRepoName.git ${NewRepoName}SubModule # You can remove "SubModule" from the end of this line IF SuperProjectPath != ParentProjectPath; otherwise, you will get name conflicts; The last section of the command represents what the directory name for the new submodule will be in the superproject
git commit -m "first commit with submodule $NewRepoName"
# 8) ... Repeat (While loop)
break# Use this line to try out just one directory - the break will exit the while loop first time around - comment it out when you are ready to try it on many directories
# this is the file that is read from for the listing of which dir's to effect