What Is Bitbucket?
Bitbucket is a web-based hosting service that distributes source code and development projects. They are offering free accounts for up to five members in a single team and we can create an unlimited number of private repositories. We can upload the source code from GitHub and Visual Studio.
- Pull requests with code reviews and comments
- Merge code checks
- More add-ons
- Team monitoring
Create a new account on the Atlassian Bitbucket site from here. You can also use a social network to sign up. After the login page, it should appear like the picture below.
Create your new project team from navigation header- Teams> Create Teams.
Add team members using their Bitbucket username or email address and manage the groups.
Create your new projects from the navigation header- Projects> Create project.
Select your team or account username on Owner List. This project can be accessed only by your team. For that, click privacy check.
Create your new repository in the navigation header- Repositories> Create repository.
Make sure to select the repository owner and project in the list. If you need more features, click “Advanced Settings” and it should expand the page like the picture below.
Once you have checked the Issue tracking checkbox, if there are any issues in the developing project stage, you can follow the team member suggestions and comments. This can reduce the dependency on external tracking tools.
If you have already built the source code in GitHub, click "import repository," or you may go to the navigation header- Repositories> Import repository
Login to the GitHub site and copy your project URL. Paste it into the URL textbox. After clicking the "import repository" button, the project will locate a Bitbucket project list for the selected team.
We have one more option: to upload it directly from Visual Studio. Open Visual Studio 2017 and create a new project with the name of your choice. I will show the demo as a Windows application:
VS 2017>New Project >choose Windows Application
The project will be created like the picture below.
Before uploading, the project shows up without a lock symbol.
Now, right click above the project and click “Add Source to Source Control.”
This action will make the lock symbol appear near all the project files.
Then, go to the team explorer window and click the “Sync” button under the project.
The first time, it will take you to the “Publish” window. Select "publish to remote repository," then click “Publish Git Repo.” It shows one textbox copied from the repository URL.
Paste that in the textbox and click on the “publish” button.
Meanwhile, it may ask your login credentials.
Now the project source code appears in the repository.
Suppose you want to delete the repository; go to the Settings menu, then scroll down to the bottom of the page. Locate the “Delete Repository” button. Once you click the button, a popup window will appear.
Copy and paste the URL to the end of the repository name. Then, click the “Delete” button. It will automatically remove your repository list.
In this article, we have seen source control using Atlassian Bitbucket. If you have any queries, please tell me through the comments section.