I am new to git, and I am trying to push a new branch to bitbucket. I already have a branch called master.
But what I want to do is push a branch with a different name to the same remote repo in bitbucket, without downloading the files for the master branch
Here is the issue that I am facing. When I initialize a new repo and do my first commit it automatically creates a master branch.. I coundln't find a way to change the name of the master branch
So I created a new branch called "database". However I am unable to add the files to the staging index for database branch because they have already been committed to the master branch
Is there a way where I can just create a new branch, commit the files to the new branch and push it to the remote server as another branch?
Any help would be really appreciated.