https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/sourcetree-tutorial-bitbucket-git-course-branch-merge-conflict-install-download-rebase-reset
Git isn’t hard to learn.
Moreover, with a Git GUI such as Atlassian’s Sourcetree, and a SaaS code repository such as Bitbucket, mastery of the industry’s most powerful version control tools is within everyone’s grasp.
Sourcetree is a popular and extensive Git GUI tool.
Git, the popular version control tool, is primarily a command-line tool. This creates two common problems for new users:
Sourcetree provides an intuitive, point-and-click GUI-based experience that takes the guesswork out of version control and simplifies integration with server-side Git tools such as Bitbucket, GitHub and GitLab.
Atlassian acquired the Sourcetree Git GUI tool in 2011. It is now their flagship Git tool for integration, alongside other Atlassian products such as:
However, you can easily use the Sourcetree Git GUI tool outside of the Atlassian sphere of influence. The initial Sourcetree download and install requires an Atlassian Bitbucket account, but after that, you can reconfigure it to use any version control product such as the following:
You can quickly master Git, Bitbucket and Sourcetree with a five-pronged approach to learning:
Sourcetree is a free download, although an Atlassian account is required to complete the install.
Sourcetree has no prerequisites other than a relatively modern operating system such as Windows 10 or the Bionic Beaver Ubuntu release.
The Sourcetree installation will include the latest stable version of Git, so no prior Git installation is required either.
The best way to experience the power of Bitbucket and Sourcetree is to create a Git repository on the Bitbucket server immediately after Sourcetree is installed.
Sourcetree will then allow you to clone that repository to your local computer.
Once you have cloned the repository, Sourcetree enables you to perform several key functions such as:
A developer must become familiar with several basic Git commands — push, pull, fetch and clone commands — to master collaborative computing with Git and Sourcetree.
Then, the next task is to practice manipulating the Git commit history.
The ability to pull and fetch from Bitbucket is a key part of any Sourcetree tutorial.
Advanced Git users understand that all important Git operations happen locally, not on a remote GitHub or Bitbucket server.
This is why developers must learn how to work with Git locally and get comfortable with commit history manipulation operations, such as the following:
In a command prompt, it can be intimidating learning all of the Git commands, switches and required parameters to perform all of these Git history manipulation tasks.
In Sourcetree? These operations are simply achieved with right-clicks, checkboxes and intuitive menu options.
The ability to perform a soft or hard Git reset with Sourcetree is a common task that developers must learn.
Git’s biggest gift to the software development community is that it enables developers to perform isolated development inside branches.
With branching in Sourcetree, developers create their own code-spaces where they can safely take chances, break things and hopefully create some brilliant software, all without the risk of breaking the build.
In terms of branching with Sourcetree, developers should become comfortable with the following tasks:
Mastery of Git branching is essential for any team doing modern software development.
Finally, once a developer masters branching, collaborative Git operations and commit history management with Sourcetree and Bitbucket, it’s time to tackle some advanced features, such as the following:
Many developers are afraid to rebase branches and squash commits. Sourcetree makes these tasks easy to perform.
This Sourcetree course curriculum might sound intimidating, but each concept flows naturally into the next, which makes Sourcetree very easy to learn.
The embedded Bitbucket and Sourcetree tutorial covers each of these topics incrementally and thoroughly.
The Sourcetree tutorial is just over an hour in length, so it’s not overly long.
It’s small investment in time that will result in a newfound mastery of Git, Bitbucket and Sourcetree.
29 Aug 2023