I've been using sourcetree with gitflow, my first steps with these tools.
In error I made and commited changes in the master branch which is now 'ahead' of the develop branch.
By ahead I simply mean that the files listed under master have changes in them that have never been in Develop - hence I am worried that if I now develop a feature branch from develop I am going to be doing so on a version that is less developed than the master and risk losing those changes when develop later gets merged to master on completing a new release.
The changes I made were good and I want to preserve them, and get back to creating new features as branches from the development branch, later merging them into the master as new releases.
What is the best way to get things back on track?
I think you could:
Thanks Alex,
I am unclear about checking out... This page in the manual talks about checking out from a remote source to the local repository..
https://confluence.atlassian.com/display/BITBUCKET/Checkout+a+branch+into+a+local+repository
Is this what you mean?
My first reaction was to switch to the develop branch and hit the checkout button on the toolbar. It requested that I select the branch that I wish to change my working tree to... Is this what you mean?
Many thanks for your patience with somebody who is learning.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In SourceTree, you can right-click on the branch name in the left pane, and select "Checkout...", or just double-click on it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.