1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #7885 resolved

Include tags in Git import instructions (BB-9056)

Joseph Earl
created an issue

The git import instructions displayed after creating a repo and selecting the option to push up an existing repo give the instructions:

cd /path/to/my/repo
git remote add origin ssh://git@bitbucket.org/user/repository.git
git push -u origin --all   # to push up the repo for the first time

The instructions should also include:

git push -u origin --tags # to push up all tags

so that tags are included, since is this is what most (unexperienced) git users will want. The two lines that push could be combined into:

git push -u origin --all && git push -u origin --tags # to push up all branches and tags