I have a project on bitbucket the I cloned locally. when I checkout a branch to work on a feature I want my commits to be available on the local feature branch ONLY then when everything is good to go, push all commits from local branch to remote one.
Currently when I push commits to the local branch using git push
git always complains about this push, shows a use git push --set-upstream <remote branch>
and exits.
How can I achieve this?
So you don't need to push. When you commit your code it stores your updated code locally and will not send it to any remote.