Multiple Concurrent Changes Using SVN, GIT, and CVS

Posted by KlaxSmashing on Stack Overflow See other posts from Stack Overflow or by KlaxSmashing
Published on 2010-05-05T14:51:04Z Indexed on 2010/05/05 14:58 UTC
Read the original article Hit count: 124

Filed under:
|
|

At work, we are using SVN, CVS, and GIT because there any many projects that were started at various times. Anyway, a common sequence that occurs is as follows:

  1. Working on task A, making changes to project
  2. Has new task B, some bug or functionality needs to be done on project, independent of task A but may affect same set of files
  3. Check in task B
  4. Check in task A

Unfortunately, what I do at this time is two maintain 2 working copies of each project. So I can always work on task B from a clean copy. As you can imagine, this is wasteful and also, does not scale well (task C, D, E, etc.)

For each of these versioning systems, are there commands that can help me do the following:

  1. "Save" task A, reverting working copy to current repository
  2. Work on task B, check in changes
  3. "Restore" task A changes back to working copy

© Stack Overflow or respective owner

Related posts about svn

Related posts about git