[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

TFS Express - Basics of source control.

Hi,

I am a single developer wanting to manage my source code better.

I have created a Team Foundation Server (express) account online. I have connected my Visual Studio 2012 to this server. I have checked in one of my existing projects.

I want to use this as an automatic backup and rollback mechanism in case I make a mistake in the project.

How do I set it up so I can roll back my project to the last build I did 2 days ago?

Thank you
0
mhdi
Asked:
mhdi
  • 2
  • 2
2 Solutions
 
Bob LearnedCommented:
There are different ways to roll back, but one way is described here:

Roll Back Changesets
http://msdn.microsoft.com/en-us/library/ms194956(v=vs.110).aspx
0
 
mhdiAuthor Commented:
I will generally only update my applications every few weeks. Changes normally take me only a few hours.

After some reading I see changesets are created when something is checked in.

So should I hold off checking anything in until my changes are completed? Or do you periodically check things in (even if your not done) to create a save point.
0
 
Bob LearnedCommented:
I try to check in every day.  Changesets are different than labels.  Labels can be used to create a set of changesets that are related to product release.

Use labels to take a snapshot of your files
http://msdn.microsoft.com/en-us/library/ms181439.aspx

I try to label all version changes that are released to User Acceptance Testing (UAT).  

http://msdn.microsoft.com/en-us/library/ms194956.aspx
0
 
mhdiAuthor Commented:
Labels seem to be what I want. Thank you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now