Skip to content

How to use Sourcetree?

Bhaumik Soni edited this page May 18, 2017 · 3 revisions

Download and install below softwares

Sourcetree - https://www.sourcetreeapp.com/
Git - https://git-scm.com/downloads


How to clone repository?

  1. Click on clone

image

  1. Enter git repo url that you want to clone
  2. Select project destination and click on Clone.

How to add working copy?

Initialize git in your project

  1. Go to your project folder.
  2. Right click on blank space and select Git Bash Here

image

  1. Type git init command in Git Command window and hit enter

image

Ad your project in Sourcetree

  1. Click on Add

image

  1. Click browse button and select your android project
  2. Click Add button
  3. You can now see your project in Sourcetree as below

image 5. Click on Setting Icon

image
6. Click on Add button

image
7. Check Default Remote and enter created Git Repository's URL and click OK

image
8. Stage all files and commit code

image
9. Click on Git Flow icon and click OK

image
image
10. Create branch with name you like

image
image
11. Push code to server

image