YouTip LogoYouTip

Source Tree Intro

!(#) There are many Graphical User Interface (GUI) tools for Git, such as SourceTree, Github Desktop, and TortoiseGit. SourceTree is a Git client management tool for Windows and Mac systems. SourceTree simplifies the Git operations between developers and code repositories. We can easily handle Git operations through the interface menus without using commands. Through SourceTree, we can manage all Git repositories, whether remote or local. SourceTree supports remote repositories like Bitbucket, GitHub, and Gitlab. * * * ## Sourcetree Installation We can download SourceTree directly from the official website [https://www.sourcetreeapp.com/](https://www.sourcetreeapp.com/) by clicking the download button: !(#) For other versions, visit: [https://www.sourcetreeapp.com/download-archives](https://www.sourcetreeapp.com/download-archives) After downloading, extract the ZIP file and double-click the application file (EXE for Windows or DMG for Mac) to install. During installation, we only need to agree to the Atlassian Customer Agreement and click Continue. !(#) Creating a Bitbucket account can skip the initial setup. Load the SSH key, if you have one it will be loaded by default, or you can set it up later. !(#) Follow the prompts until you complete the setup. If you are not ready to clone a repository yet, click Skip Setup. * * * ## Connect Github Account If you don't have a Github account yet, you need to create one. You can refer to [Git Remote Repository (Github)](#). Next, we will introduce using Sourcetree to manage our Github account. We can add multiple accounts to Sourcetree. Click the button in the top right corner and select **Accounts**. !(#) Next, we add a Github account by clicking the add account button. !(#) After adding the Github account, we can directly clone our own account: !(#) We can also clone other remote repositories: !(#) After cloning is complete, we can perform operations such as commit, pull, and merge: !(#) * * * ## Create Local Repository Click **New**, then select **Create Local Repository**. !(#) Enter your target path and repository name, then click **Create**. !(#) After creation, it will be displayed in the local list: !(#) If we already have a repository locally, we can add it directly. Click **New**, then click **Add an existing local repository**: !(#)
← Jsref Isnan NumberRef Random Randint β†’