- Status:Closed(View Workflow)
- Fix Version/s: None
SourceTree and Bitbucket have not been able to take full advantage of these improvements: the current release of the GCM does not support Bitbucket OAuth for HTTPS URLs and SourceTree has not supported OAuth for git/hg or REST API calls. This has meant, when using SourceTree, you have the following choices. List and explanation according to the screenshot above: #1 Clicking on File Status Working Copy button will lead you to the File Status view. #2 This section lists down all the branches available in this particular repository. Clicking on any of the branch will cause SourceTree navigate to.
- Feedback Policy:
Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.
Refering to this post in Atlassian Answers https://answers.atlassian.com/questions/175568/sourcetree-windows-git-diff-branch1-file-branch2-file?page=1#comment-181747
Add a new Option to the right click menu in File Status. 'Diff against branch' and this menu should have a submenu with all the branches to diff against.
Then we should only get the diff between the file in the current branch and the branch clicked in the menu.
- Steve Streeting (Inactive)
- 1Vote for this issue
- 3Start watching this issue
While working with Git it is often required to check the changes between different areas.
Probably everyone knows the
git diff, that shows the changes between the Working Directory and the Staging Area (
But it is also often needed to shows the changes between the Staging Area and the
git diffstaged) or between the Working Directory and the
git diffstaged and unstaged).
Cool Tip: Did something wrong? Want to undo everything? You can easily revert all changes back to the last commit! Read more →
Git – Diff Staged and Unstaged Files
First of all it is required to clearly understand the meaning of the following terms:Working Directory – files in a current local directory that you are working on.
Staging Area (aka. cache, index) – is a temporary area where you add files with
git add command.
HEAD – is a reference to a specific commit (normally to the the last commit in a local repository).
Git Diff Unstaged
Shows the changes between the Working Directory and the Staging Area:
Git Diff Staged
Shows the changes between the Staging Area and the
Sourcetree Diff Against Current Graph
Create an alias
git diffs, if you need to check these changed often:
Git Diff Staged and Unstaged
Shows all the changes between the Working Directory and the
Sourcetree Diff Against Current Weather
Create an alias
git diffh, if you need to check these changed often: