Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

Thursday, May 16, 2013

Git for beginners

Getting started with Git

I would advise to read through what is Git, and have a decent understanding of SCM process.
The first question everyone would get is why I should move away from my current SCM systems(CVS or SVN).  Well there are lot of articles around this topic if you google,  just a couple of quick reasons I would give to go with Git,
  1. Works the best if you are working decentralized.
  2. Stop questioning and just "Go with the flow" :-), git is grabbing more focus recently especially after GitHub's strong support.

Lazy comparison of Git vs SVN commands

I thought a simplest way is to compare Git vs SVN was through the basic commands used for day-to-day development.  Though we use the UI tools for regular activities, I am listing down the comparison by commands (lazy).

Git vs SVN commands
Git vs SVN commands
Two notable operations are the checkout and commit.  For any Git operations "clone" is a prerequisite, so to do a checkout initially you must clone the repository. If you notice a commit is not an actual commit to the repository instead it is to your local.  You need to do an explicit push to the repo after a successful commit. Remember everything happens in your local and not in your repo.

Monday, August 31, 2009

org.tigris.subversion.javahl.ClientException: Attempted to lock an already-locked dir svn

I had this error when I tried to update my source directory of my project. The reason for this exception is unsuccessful previous commit/update with svn. For example when you close your eclipse when a transaction takes place.

How do I resolve this issue?
  1. Right Click your project and select Team --> Cleanup
  2. Now try to do your update/commit
Try to do it at your project level since even if you try cleanup at source level and if the project has a lock, you will still not be able to do an update/commit.