I am using sourceTree for Mac as my GUI so I would appreciate instructions on using it but obviously I would like to learn the bash commands as my first language.
We have a remote repo we call develop
, and the practice is, when you develop a feature, you create a branch from develop
for that feature, for example feature1
, pull it down, and then submit a pull request on the branch you created.
I have recently developed some analysis tools which I don't want to get put into the remote code base (yet, anyway).
How would I, locally, merge my analysis
branch with my feature1
branch for testing, and then unmerge analysis
after I'm completed?
Which branch should I have checked out at the time I do the merge, feature1
or analysis
?
NOTE: I want to retain all the file changes to feature1
I did while the branches were merged; the files and edits from analysis
are extremely unlikely to conflict with my feature branch, so essentially I'm adding in some non-conflicting code, then pulling the branch out; so any commits I have done to feature1
, I don't want to lose.