Use Sourcetree to manipulate git tutorials under Mac

Source: Internet
Author: User
Tags version control system git commands sourcetree

Sourcetree is a free Git and Hg client under Windows and Mac OS X, as well as the mercurial and Subversion version control system Tools.         Support for operations such as create, clone, commit, push, pull, and merge. Sourcetree has a beautifully simple interface that greatly simplifies the way git works between developers and CodeBase, which is useful for developers who are unfamiliar with git commands. Sourcetree has full git functionality: With a simple user interface, all git commands can be managed with a single click to manage all Git libraries, whether managed or local, with a single click to commit, push, pull, Merge and other advanced features such as patch handling, rebase, shelve, cherry picking can be connected to a codebase that you host in BitBucket, Stash, Microsoft TFS, or GitHub.

Installation of 1.sourcetree:

Open the store: Search for Sourcetree and download, install (free).

2. Register a git service (http://git.oschina.net/for example)

Open http://git.oschina.net/Register and verify, create or fork a project and open it.

Write down the address of the git file.

3. Open Sourcetree, click New

Fill in the address just now and select a local directory to store the code.

4. Now you can develop in the local directory, after the development is complete, open the Sourcetree again:

Drag the files in the working tree inside the index inside the file in the click on the "Commit" in the toolbar, click on the click on the commit in the pop-up box, clicking on the green push arrow, then your file will be successfully uploaded to the GIT repository!

5. If the error:failed to push some refs to error occurs because the local and remote version mismatch caused, then clone the code again to local ok~

Use Sourcetree to manipulate git tutorials under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.