I have just branched from Main to v5.0 but I realized that I want to move this branch inside the Release folder.
How should I proceed with TFS 2010?
Thanks.
Simply right-click on your branch in Source Control and select 'Move..'. Set your desired destination path, and commit this change. You should be OK.
I think I 've read somewhere that moving folders & renaming folders shouldn't be done in separate steps, so if you plan to also rename your branch, do this in a next step.Once you 're done, you should check that with right-clicking MAIN > "branching and merging" > "merge..." you have a target branch to your moved/renamed branch.
Related
I have a Folder "$/MyTeamProj/Sources" in TFS with some projects in it.
There is no branch in the team project.
Now I want to create a Branch of this folder with the name "Dev".
When I click on "convert to branch" I cannot change the Branchname.
I don't want to rename it and checkin and afterwards create the branch and checkin again.
I want only one checkin. The branch should keep history from the folder.
Many Thanks in advance
Right click on the folder.
Choose "Bracnhing and Merging".
Don't click on "Convert to branch", click on "Branch...".
In the "Target" type: "$/MyTeamProj/Sources/Dev".
Click OK.
I have set up a number of projects on Git VSTS, and all was fine.
I then tried to add another solution to source control today, but the status bar along the bottom said it was already under one of the previous source control projects I set up - which is in a sibling folder.
The File->Source Control menu item was missing so I couldn't look at bindings or anything.
In the end, I moved all the projects and solution files to a differently named folder, and the normal status bar "Add to source control" item came back.
My question is, why does moving the files work? There were no hidden .git or .vs folders - this solution had never been added to source control before.
What is it doing? Is there a way to fix this if it happens again without renaming the solution folder?
Additional info: I tried disconnecting from TFS and opening the project I wanted to add, but that had no effect - so I presume that's because it thinks it's using the local git repository?
If I look at Team Explorer once disconnected from TFS, then all remote repositories are disconnected as I'd expect, but the local Git one the common code repository is bold still as the current repository - and there seems to be no way of disconnecting from local repositories?
You may try to clean the cache folder to see whether it helps you. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache.
I recently refactored an old project and altered its file/folder structure, which has caused big problems checking in. I can't check-in pending changes because parent folders have pending changes along with their children. I've tried checking in groups of changes at a time but to no avail.
Is there a way to reset the source control without erasing my TFS work items and change history?
if everything is as you want it in TFS, you can delete Your local workspace, to clear any files you have locally.
You can then goto to Advanced>Source Control and choose specific Version.
tick both boxes and click ok
when refactoring folder structures within TFS you are best to use the move function of TFS, (shown in first Pic). Move your folders, this way TFS will retain history, then open the solution and remap any projects that have moved
Using TFS 2013 and VS 2012, I recently created a new "Main" folder under a project, then copied and pasted the Source folder from another project into that folder, then converted to branch.
After doing this the branch does not have the ability to drop down. If I select the local path, the folder shows up. But if I just select the Main branch from the Source Control Explorer it is empty within VS.
I have made sure that all my changes have been checked in and have no pending changes.
After copying and pasting into the Main folder, converting to branch, and checking in, I still had to right click on the Main branch and Add Items to Folder...
Once I did that, they showed up, I checked them in and am now good to go.
I'm working under a single repository and mostly in one solution.
However, during the work on the solution I do change other files as well, when I come to commit, however, AnkhSVN only shows the files that are part of the solution. That forces me to use TortoiseSVN to do the commit on the whole directory, which in turn misses some of the files that I added with AnkhSVN.
The simplest solution to this would be if AnkhSVN showed me ALL the pending changes for the repository. A worse alternative would be if AnkhSVN flagged added files so that TortoiseSVN would be also aware to them when doing commit from it.
Anyone knows a solution to these issues?
Thanks!
You can set an option to auto add files when new files are created that should be versioned by going to Tools -> Options -> Source Control -> Subversion Environment. Select "Directly add new files to Subversion" here.
Another alternative to make "New" files "Added" is the "Apply to Working Copy" command, available through the drop down next to the Commit button in the Pending Changes window.
In TortoiseSVN, there's a checkbox in the commit dialog "show unversioned items". If you check that box, the files that are not added yet are shown as well.
You can right click the svn folder then TortoiseSVN-->Add , will show all the items which is not included for supervision.
check the screen shot