Some useful functions to manage branches, tags and upstream changes

Change-Id: If9908b20a91ac58ae709a777d2adb2ec4938292f