Para inicializar un repositorio en BitBucket, si seleccionamos la opción I’m starting from scratch
igual te dicen que lo añadas como remoto y hagas push
$ git init $ git remote add origin ssh://git@bitbucket.org/usuario/test.git ... $ git commit -a -m "first" $ git push origin master
pero justamente lo malo es que ésto no deja trackeando el branch, por lo que hay que escribir la frase completa y no se puede abreviar como
$ git push
Lo que hice fue aprovechar que igual debo crear la rama de desarrollo
$ git chechout -b development
borrar master (!) porque ya está pusheado –
$ git branch -D master
y después checkear la rama remota como dice la documentación
$ git checkout -b master origin/master Branch master set up to track remote branch master from origin. Switched to a new branch 'master'
¿es en ésto BitBucket inferior a GitHub?