Revert "Some useful functions to manage branches, tags and upstream changes"

This reverts commit 9cef21d8373f7bf12dd12cdd25f045aa135790d9.