This should be an RTFM question, but I just can't find it!
I just started using StarTeam at work and I'm trying to initialize a repository that I have been managing with Git. I've managed to add the folders to my view, however, I can't seem to check in all the files. I don't think anyone will notice the extra Git information so, does anybody know how to add all files and folders to StarTeam recursively? Command line would be fine, I'm getting tired of fighting with the client.
If it's important, StarTeam 2006 Release 2
First, add the folders.
Right-click the parent of the top folder, click "New...", type the top folder name, and complete the wizard. Sub-folders will be added by default.
Next, add the files. Click the parent folder. Click the "Show all descendents" toolbutton to the right of the <All Files By Status>
combo. All files will show. Multi-select them, right-click, and click "Add Files..." on the menu.
This is a pretty old question, but I just had to solve a similar problem. You can do that using the stcmd
command line tool. Create a shell script like the following one to do that.
starteamPath="user:password@server:port/project/view/starteampath"
projectFolderPath="/path/to/project/folder"
projectFolderName=`basename "${projectFolderPath}"`
cd "${projectFolderPath}"
cd ..
# add folder projectfolder and all subfolders
stcmd add-folder -p "${starteamPath}" -is -fp `pwd` -name "${projectFolderName}"
# add all files from all subfolders
stcmd add -p "${starteamPath}/${projectFolderName}" -is -fp "${projectFolderPath}" -EOL OFF "*"
# check in all files of status updated an unknown
stcmd ci -p "${starteamPath}/${projectFolderName}" -filter MU -o -EOL OFF -r "${checkinMessage}" -is -fp "${projectFolderPath}" "*"
I think you can use -exlist
or -exfile
to exclude your git folder.
I'm using Starteam 2009 v11.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With