Git vs SVN commands

We use Git and SVN for managing projects.

I personally work on Github, GitLab and BitBucket. I’m more familiar with Git commands.

WordPress itself use the SVN for hosting plugins and themes. I have created a WordPress Theme and Plugins. But, I personally not use SVN though command line.

I personally use Tortoise SVN for managing my theme and plugins. It provides a GUI (Graphic User Interface) which allow working on SVN with a very easy way. Read more about Tortoise SVN.

I was always querying about,

  1. How to work on SVN though command line?
  2. Which are the basic SVN commands like Git?
  3. What is the difference between Git and SVN commands?
  4. etc.

I’ll create an article on all the above questions which I have tried to resolve soon.

For now, I have created a table of Git vs SVN commands. You can also check below the table of Git vs SVN commands for reference.

Description GIT Command SVN Command
Copy a repository git clone svn checkout
Record changes to file history git commit svn commit
View commit details git show svn cat
Confirm status git status svn status
Check differences git diff svn diff
Check log git log svn log
Addition git add svn add
Move git mv svn mv
Delete git rm svn rm
Cancel change git checkout svn revert1
Cancel change git reset svn revert1
Make a branch git branch svn copy2
Switch branch git checkout svn switch
Merge git merge svn merge
Create a tag git tag svn copy2
Update git pull svn update
Update git fetch svn update
It is reflected on the remote git push svn commit
Ignore file list .gitignore .svnignore