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,
- How to work on SVN though command line?
- Which are the basic SVN commands like Git?
- What is the difference between Git and SVN commands?
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.
|Copy a repository
|Record changes to file history
|View commit details
|Make a branch
|Create a tag
|It is reflected on the remote
|Ignore file list
In development, We spend a lot of time on the command line. We type a lot of commands on regularly.
I have created a shortcut for the most of the commands which I use on a daily basis some of them are below:
|wp theme list
|wp plugin list
Check all the available WP CLI commands etc. (all WP CLI commands list)
Example 1. Using shortcut
wpthl instead of
wp theme list
Example 2. Using shortcut
wppll instead of
wp plugin list
Some more commands with keyboard shortcuts/aliases are below:
|git add .
|git commit –message
|git pull origin
|git push origin
To create keyboard shortcuts using aliases is very simple. We can create any command shortcut/aliases.
Follow below simple steps:
- Open the file
.bashrc which is found in location
- Add below sample commands of Git & Grunt.
I found the article Terminal/Bash Command-Line Shortcuts with Aliases written by @jonsuh to create keyboard shortcuts for the Terminal/Git Bash.
I have added some more commands of Grunt, WP CLI & PHPCS on my local environment.