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 create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.


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


How to generate UUID / GUID in Java using java.util.UUID class, UUID.randomUUID() method.


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