Git push fails

$ git push
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use
 
    git push origin HEAD:develop
 
To push to the branch of the same name on the remote, use
 
    git push origin dev/ft/gdsexchange
 
To choose either option permanently, see push.default in 'git help config'.
Copy the code

Git push dev/ft/gdsexchange was pulled from the develop remote branch. Git push dev/ft/gdsexchange was pulled from the develop remote branch

There are two solutions: 1. Take the advice given

git push origin dev/ft/gdsexchange
Copy the code

2. You can re-specify a branch with the same name as the remote branch.

git push -u origin dev/ft/gdsexchange
Copy the code