tfs exclude directory from 'detected changes' [duplicate] - tfs

This question already has answers here:
How to ignore files/directories in TFS for avoiding them to go to central source repository?
(6 answers)
Closed 8 years ago.
Using tfs online I have a mapping to C:\Work
There I have some directories I don't want to be versioning controlled and I keep them out of source control. Problem is VS 2013 show them as detected changes. This are temporary folders (like EmailPickup) that I want to never 'watch' on those folders. Is there any way to do that so Visual Studio stop suggesting me there are detected changes to include ?

found a simple way to doing it.
On the detected changes modal (Promote Candidate Changes is the title) you can right click and ignore by extension and / or folder.

Related

How to checkin on TFS without error of common .vs and packages in asp.net mvc? [duplicate]

This question already has answers here:
Visual Studio 2015 TFS .tfignore file
(3 answers)
Why doesn't my .tfignore file ignore my packages folder
(2 answers)
Why .tfignore doesnt work at all?
(1 answer)
Closed 3 years ago.
I have an application in visual studio 2017 and I have upload that application on TFS before few days. Now I have made some changes and I want to upload latest code on TFS so when I am going to checkin my code on TFS then every time it's giving me different error like "The process cannot access the file...v15\Server\sqlite3\storage.ide-shm' because it is being used by another process.". Also some times it's giving error like "server sqlite3 db lock because it is being used by another process".
I have check for it's solution and almost every solution suggest for delete vs folder and then checkin code on TFS. So when I delete vs folder and again start my project then again vs folder create automatically. And again I am getting same issue.
So how to upload/communicate with TFS without this types issue ?
These files that are giving you the error should not be part of your repository. They are files used by Visual Studio and don't need to be checked in.
TFVC and other source control system have an option to exclude these files when checking in your code.
If you're using the TFS' TFVC for source control you can add a .tfignore file in the Source Control Explorer and in it you list the files that you want to exclude.
If you're using GIT for source control with TFS you can add a .gitingore file in your repo and in it you list the files that you want to exclude.
Note that you might not have add each file in the .ignore one by one. GIT has predefined .gitingore file to exclude all these unnecessary files.
Here is a short video on how to use .tfignore: https://www.youtube.com/watch?v=BfKcTX8NxAQ

VS Team Services: How to amend a check in? [duplicate]

This question already has an answer here:
Is there a git style amend option in TFVC?
(1 answer)
Closed 5 years ago.
For my project I use VS Team services, linked to Visual Studio 2015.
When I want to check in a new commit, I can do this:
In solution explorer, right click on project
Source Control -> Check In
Enter a comment, click 'Check In'
Now I would like to amend my previous commit, since it wasn't finished completely when I checked it in, in GIT this is possible with the git commit --amend function.
How to do this in VS Team Services? Preferably from Visual Studio itself.
You can't really, there are 2 approaches you can take with TFVC:
Make a second commit and don't worry about it, this is my approach for small typos, etc.
Rollback the changeset, and check it in. Then rollback the rollback and make additional changes and check in again. This is my approach if I totally stuff something up.
Related Question/Answer.
All you can ammend in TFVC is the Check in Comment, this can be done by viewing the change set in VS, editing the comment and pressing "Save".

Visual Studio 2015 - Merge tool button missing

I'm having problems with merge tool in Visual Studio 2015. I didn't need the merge tool for the longest time, I haven't used it for couple of months. Now when I need it I can't find it. I was trying to google and find an answer, checking VS settings but with no success. I can only see buttons 'Overwrite Local File or Folder' and 'Keep Local File Contents'. When I press Compare button, I see diff tool but I'm not able to accept changes (check buttons are missing).
What am I doing wrong? How can I merge two files?
Please navigate to files in source control
Right click on file/folder you want to branch>>Merge
Full list of other solutions.
This is because these files in your local folder are not been tracked by TFS Version Control. For example, you added a file "readme.txt" in you local folder and hadn't check-in them into version control. Another people in your team also added this file in the same relative path and checked it into version control. Now, when you get the latest version or check in your changes, you will get the behavior as your screenshot. A similar question can be found here: TFS Conflict Type: Writable File - A writable file by same name exists locally
It's doing exactly the same things in Visual Studio 2017.
If you had a problem in workspace and you rollback it from a save, you can have the same issue.
You need to rebind some of the project by yourself first like the asked question here : Re etablish TFS source control bindings, then if all is going well you will see the button.
If it's not working, try to use external merge tool which will allow you to edit thoses files.

How to remove old builds in jenkins? [duplicate]

This question already has answers here:
Jenkins: remove old builds with command line
(12 answers)
Closed 7 years ago.
I removed old build folders from the build directory in Jenkins expecting them to be removed in the UI, unfortunately whilse these build directories are gone, their UI link still exists. I now have two questions:
How can I get rid of the defunct links in the UI?
How can I delete old build from cli and have it reflected in the UI?
A better way to remove old builds is discard-old-build plugin where you can specify how many builds you want to keep and all older builds are discarded.
You must either restart Jenkins or reload the data, in order to reconcile the UI with its back end. There is no other way.
If you have access to the "Manage Jenkins" menu there is a link to "Reload Configuration from Disk", which is a little less invasive than a restart.
Keep in mind that the system will be not usable for a few seconds while the data is reloaded, just like during a full restart. If you have a lot of builds, this might take a little. So, make sure that this is ok with the other users of your system.

How to display Pending Changes as list rather than tree view in VS2012? [duplicate]

This question already has answers here:
VS2012 return to a normal TFS checkin window?
(5 answers)
Closed 9 years ago.
The TFS Pending Changes has moved from its own window to a tab in the Team Explorer.
The pending changes are now displayed as a treeview that reflects the structure of the solution.
How can I display the pending changes as a flat list/grid that can be sorted by various columns?
It's possible to add "TF.exe Checkin" as an external tool, see answer for a similar question.
However it pop-ups after some delay, which is annoying.
I found that if you have only a few recently checked-out files that you want to check-in together, using pending changes tree view is quicker. However if you need to check-in some of many check-out files, "TF.exe Checkin" list is more convenient.
Alternatively try TeamPilgrim Free VS extension -
a replacement for Visual Studio 2012's Team Explorer inspired by the Visual Studio 2010's Team Explorer by Stanley Goldman
After experimentation, I've found it's a link on that page, Show all included changes:
#G_P added this as a comment to a different answer, but I think it deserves an answer slot of its own.
The TeamPilgrim extension includes a replacement pending changes window/tab.
http://visualstudiogallery.msdn.microsoft.com/79e9baa7-ea8b-4335-86ba-ae929bf67222
There is a "pending changes" filter on the Visual Studio 2012 Solution explorer. It will display all your files that are checked out the same as the Team Explorer, but without all the extra garbage about Notes or Work Items.
http://blogs.msdn.com/b/visualstudioalm/archive/2012/08/14/showing-files-with-pending-changes-or-files-that-are-open-in-visual-studio-2012-solution-explorer.aspx

Resources