How to push a local GIT repository to Bitbucket

H

How Can We Help?

  1. Launch Bitbucket
  2. Click on Repositary -> Create Repository
  3. Enter your Repository name
  4. Set the access level to This is a private repository
  5. Set Repository type to GIT
  6. Click on Create Repository
  7. Using GIT on the command line, execute the next set of commands:
    cd /path/to/my/repository
    git remote add origin https://[email protected]/<username>/<repositoryname>.git
    git push -u origin --all # pushes up the repo and its refs for the first time
    git push origin --tags # pushes up tags

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me