git command line commit

Git has a “staging area” where files need to be added before being committed, you can read an explanation of it here. So if you make some change and commit directly, you get some message like: no changes added to commit (use “git add” and/or “git commit -a”) preview Before you add, you could have…

Intellij auto add semi colon

There is no way to insert it automatically, you need to use the Complete Statement action (Ctrl+Shift+Enter). You also need to check that Use semicolon to terminate statements option is enabled in Settings |Code Style | JavaScript | Other tab.

Add User to root Group on CentOS VPS

1. Add a new user. In this example, I used ‘myroot’ and then set the password. [root@CentOS57 ~]# useradd myroot [root@CentOS57 ~]# passwd myroot Changing password for user myroot. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. 2. Check current groups for ‘root’ user. [root@CentOS57 ~]# groups root bin daemon…