To get the corresponding to the current branch name of remote and name of remote branch in Git the following command can be used:
git rev-parse --abbrev-ref -