AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Bitbucket sourcetree3/16/2023 Once you have your repository settings customized, click on the ‘Create repository’ button. With Issue Tracking enabled, I can directly relate a commit to an issue which lends itself nicely to finding what changes were made in order to fix a problem. I typically use Issue Tracking as having the integration is nice. ![]() In this case I have setup a Git repository. Other times you may have a team working on code and you’ll want to ensure that there are no forks so that everyone has the same base. There may be times where only one person uses the repository, but you still want the ability to fork. Most of this is fairly self-explanatory with regards to Forking, it will likely be based very much on a case by case basis of who will be using the repository and what the expectations are. Give some thought to the name as you may end up with a bunch of repositories down the line and the last thing you need is to have them all named ‘Test Project’ or ‘Files’. From there, go to the Repositories dropdown and choose ‘Create repository’. ![]() Once you get all of that stuff out of the way, you can login and you’ll be sitting at your home screen. You’ll need to visit BitBucket and sign up for a free account. So without further ado, let’s get started with Part 1: Creating a BitBucket repository and setting up SourceTree. I use a repository for my SQL Server Reporting Services, and if you wanted to you could use it for other tasks such as switch configs or Powershell scripts (assuming you are OK with having them sit in the ‘cloud’). Of note is that repositories don’t necessarily have to be restricted to traditional coding projects. Recently I needed to start up a new repository for a project so I thought it would be an opportune time to document the process. I initially started making small changes like fixing typos, but once I got used to the idea of version control I started getting braver as I knew I could easily roll back changes if I screwed up bad. The developer had done most of the work, but due to time constraints he couldn’t always get around to all the bug fixes. To verify that it is connected to the remote on BitBucket, click the "Settings" gear in the top right-hand corner and you should see the BitBucket remote in the "Remotes" section.I have been using version control for a little while now and although I am not a developer, I really got into it once I was involved with a web app project. Once that's done, you can double click the new bookmark and use SourceTree as you normally would. You can either clone it to a new location, or add the directory manually in the Local tab. Since I already have this repo in another location, I'll move it to the trash.)Īdding an Existing Repo that Has a Corresponding Remote to SourceTreeįor some reason if you click "Clone" next to a repo you already have on your local machine and select the existing directory, it won't connect the remote repo with your existing copy. Select "Delete" (When you do that, you'll be asked whether you'd just like to remove the bookmark from SourceTree and leave the repo on your machine, or also move the repo to the Trash.Since I already have this repo on my machine in another location, I'll delete the copy that I just cloned. If it doesn't, double click on the bookmark in the list in the "Local" tab. The repo will be cloned to your local machine and should open in a new window when it's done. Name: (This is the name of the bookmark that represents the repo in SourceTree).Destination Path: (This is the location on your computer that you'd like the repo to be cloned to.).Source URL: (Leave this at its default.Click the "Clone" link next to the repo you'd like to clone.I'll clone it to a new location on my local machine just to show how it works, and then I'll just add the copy that I already have to SourceTree. Once you've done that, you'll see your BitBucket repo and can click "Clone" to clone it to your local machine. If you are on a Mac, you might be asked if you would like to store your information in your keychain.Password: (Enter your BitBucket password). ![]()
0 Comments
Read More
Leave a Reply. |