This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Sourcetree

How to Change User in Sourcetree

Updated on:
June 5, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to switch the user on a per-repository basis in Sourcetree.

Quick summary

Changing a user in Sourcetree is done through the Repository Settings dialog, where you can update the username and email for any individual repository without affecting your global Git configuration.


Steps

  1. Open your repository in Sourcetree, click the Repository menu, and select Repository Settings.
  2. Inside the Repository Settings dialog, navigate to the Advanced tab where user info is stored.
  3. Enter your new username and email address in the respective fields.
  4. Click OK to save your changes — note that this only updates the user for this specific repository.

📌 Why this matters

Sourcetree allows developers to set a different Git user identity on a per-repository basis, making it easy to separate work and personal accounts without changing global Git settings. This is especially useful for developers who contribute to multiple projects under different email addresses or usernames. Knowing how to change the user in Sourcetree through Repository Settings prevents mis-attributed commits and keeps contribution history accurate. Mastering this setting helps teams maintain clean audit trails and ensures every commit is linked to the correct author.
Your product deserves an interactive demo
Start free
Similar Articles
Sourcetree

How to Update Sourcetree Mercurial

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Add SSH Key in Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Add Files using Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it