Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Similarities:</strong></p> <p>Files that should be part of the repository must be added in order to being tracked. Both tools use the <code>add</code> command to accomplish this. Adding files means to prepare a commit.</p> <p><strong>Differences:</strong></p> <p>Git allows some further kind of detail when adding files. You can decide to add a whole file or distinct lines of code. Adding files to the <em>index</em> or <em>stage</em> allows more flexibility. SVN automatically commits all changes on a file that has already been added to the repository. Git leaves the decision of what changes to associate with each commit operation to the user. In other words: the next <em>commit</em> in Git only contains those changes (lines or files) that have been staged, regardless of the tracking status of the files. SVN automatically includes all changes on tracked files.</p> <p><strong>Additional information:</strong></p> <p>Try to read some posts describing Git workflows such as the one from <a href="http://web.archive.org/web/20120917134032/http://osteele.com/archives/2008/05/my-git-workflow" rel="nofollow noreferrer">Oliver Steele</a>. But be aware that there is <strong>not one</strong> way to use Git - there are many. If you want, you can use Git as if you were working with SVN.<br> Do not expect to understand the philosophy of Git in a short period of time. It took me a year to get into it and I still learn new ways to use it. I think it is even harder if you grew up with SVN mindset. There are tons of materials out there: articles, videos, ... - take your time and try some of them. Here is a selection from the list I collected.</p> <ul> <li><a href="http://gitimmersion.com/" rel="nofollow noreferrer">Git Immersion</a></li> <li><a href="http://think-like-a-git.net/" rel="nofollow noreferrer">Think Like (a) Git</a></li> <li><a href="http://tom.preston-werner.com/2009/05/19/the-git-parable.html" rel="nofollow noreferrer">The Git Parable</a></li> <li><a href="http://www.vogella.com/articles/Git/article.html" rel="nofollow noreferrer">Git Tutorial by Lars Vogel</a></li> <li><a href="https://gist.github.com/423320" rel="nofollow noreferrer">Links and background information collected by tekkub</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload