Difference between GIT and SVN:

  • SVN is centralized control, but GIT is distributed control
  • for example,
  • for SVN, when commit, the changes is on the repository, and everybody can see the change.
  • for GIT, when commit, the changes is on the local, and only the local user himself can see the change, if he wants other people to see the change he must push the change

SVN

Common subversion commands include

  • Import (add file recursively)
  • Checkout (add a repository)
  • Commit
  • Update

What is the difference between commit and update?

  • Update is used to update the local workspace with the changes made by the team to the repository, while commit is the process to implement changes from local to repository, in simple words, upload a file into repository.

Explain how you can apply a patch in SVN?

  • To apply a patch in SVN, you are required to “Create Patch” by making changes and generating the .diff file. Then this .diff file can be implemented to the new code base using “Apply Patch” .

GIT

What is the command you can use to write a commit message?

  • The command that is used to write a commit message is “git commit –a”. The –a on the command line instructs git to commit the new content of all tracked files that have been modified. You can use “git add<file>” before git commit –a if new files need to be committed for the first time.

What are the advantages of using GIT?

  • Data redundancy and replication

Commit and push:

  • Well, basically git commit puts your changes into your local repo, while git push sends your changes to the remote location.

results matching ""

    No results matching ""