What is the difference between the working copy and the current branch?

I have just moved my source code to Hg on Bitbucket. I'm using SourceTree, and I notice that when I click on the current (and only) branch, I get a list of all of the folders in the app; however, when I click on "working copy" I get nothing!

So, what is the difference between the two, and what action would I take to get the "working copy" to have something in it?

1 answer

1 accepted

You'll want to check the dropdowns in those two views. Your working copy probably says "Show Pending", which will only show files that have changed since the last commit. When you click on your branch, it shows all the changes that were made in the last commit to your branch. Since you just created this repository using existing code, that initial commit will be the one where all of the files were added, so they'll all be displayed.

If you want to see all the files in your project, change the dropdown to "Show All".

To answer the high-level question, the "working copy" are the files you are currently editing. Changes you make there aren't versioned until you commit TO your branch.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

699 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot