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.


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


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.