How to rename a git branch

  • 13 May 2020
  • ADM

How to rename a git branch in simple steps: rename branch, delete old remote, push the new branch and reset the upstream branch.


How to remove a remote from git

  • 14 April 2020
  • ADM

To remove a remote you can use the command git remote rm in the terminal, from the root folder of your repository.


How to remane a remote from git

  • 10 August 2018
  • ADM

To rename a remote you can use the command git remote rename in the terminal, from the root folder of your repository.


How to add a remote to git

  • 23 March 2020
  • ADM

To add a new remote you need to use the git remote add command on the terminal in the root folder of your repository.


How to execute shell command from Java

  • 20 June 2018
  • ADM

How to execute a shell command from Java using Runtime.getRuntime().exec() method.


How to change the hostname in Ubuntu

  • 11 June 2018
  • ADM

How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl