atlassian-sourcetree

How can I rebase multiple branches at once?

…衆ロ難τιáo~ 提交于 2019-11-30 04:16:09
I currently work on a project in which SVN is used as a repository. Locally, I do several "experiments" with the code that I don't want to commit to the repo. Therefore I use git locally on top of the SVN working directory and use multiple branches for different "experiments". So it looks e.g. like this. C0 ---- C7 (master) \ \---- C1 ---- C2 ---- C4 (exp1) \ \ \ \ \ \---- C3 (exp2) \ \ \ \---- C5 (exp3) \ \---- C6 (exp4) On branch master I want to have the untainted SVN repo, i.e. C0 is SVN Repo Revision x and C7 is SVN Repo Revision x + n. Is it somehow easily possible to rebase all the exp

How do I revert back to earlier commit using source tree

南笙酒味 提交于 2019-11-30 03:57:43
I have a project stored on my Mac and created a repository for from that location to my project. I am able to commit using source tree but now I would like to revert back to an earlier commit so all my files in folder update? I'm not sure how i do this? Temporary Revert Back If you want to temporarily go back to this commit, then come back to where you are. Right click on the commit you want to revert to and click on "checkout". Permanent Revert Back This will add commits to revert all your work since this commit Right click on the commit you want to revert to and click on "Reset <> to this

How to discard uncommitted changes in SourceTree?

醉酒当歌 提交于 2019-11-29 19:15:27
I'm new to the Git environment, and I'm using BitBucket with SourceTree on Mac. All I want to do now is to discard the changes since last commit. How should I do this? I haven't found anything like "discard changes", and directly pulling from the last commit doesn't seem to work. Solutions done with either the GUI or command line will be good. Thank you. I like to use git stash This stores all uncommitted changes in the stash . If you want to discard these changes later just git stash drop (or git stash pop to restore them). Though this is technically not the "proper" way to discard changes

How to interactively (visually) resolve conflicts in SourceTree / git

拈花ヽ惹草 提交于 2019-11-29 18:54:14
I'm using (Windows) SourceTree for my git project. I can do it in either command prompt or Linux terminal. But, I'm wondering whether there is a nice way to interactively and visually resolve conflicts. For example, if pull detects conflicts, popping up a GUI-based conflict tool (e.g., P4Merge). Is it possible? I am always doing manual conflict resolving, which is just painful. This is, for example, a git pull message, from SourceTree. git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master From W:\repo\ * branch master -> FETCH_HEAD Updating 33c07bf..41e0249

Sourcetree - undo unpushed commits

若如初见. 提交于 2019-11-29 18:42:15
I am using Sourcetree for Windows for a git-repository and would like to undo an unpushed commit. Is that possible? If I do "revert commit", it creates a second commit which reverts the first commit, but I don't want the first commit to appear at all in my source control. I could also delete my local repository and pull it again without my local commit, but maybe there's another way? Right click on the commit you like to reset to (not the one you like to delete!) Select "Reset master to this commit" Select "Soft" reset. A soft reset will keep your local changes. Source: https://answers

How do you keep SourceTree/SSH from forgetting your SSH keys? (I have to manually re-run 'ssh-add' to get it to work again!)

戏子无情 提交于 2019-11-29 04:37:59
问题 UPDATE - It happened AGAIN!!! Ok, so this just happened AGAIN ! MAN is this frustrating!!! But this time I dug a little deeper and found that for some reason, my private keys were unloaded. Specifically, when I call this... ssh-add -l -E md5 I get this... The agent has no identities. However, if I then run this... ssh-add /Users/[username]/.ssh/[private key] Everything works again! SourceTree connects just as it's supposed to. The question is why do I have to keep running the 'ssh-add'

unable to get SSH keys working between sourcetree and github

不羁岁月 提交于 2019-11-29 01:44:57
问题 I was able to create a key and connect to github following these instructions via the command prompt successfully: https://help.github.com/articles/generating-ssh-keys However, when I try to connect via Sourcetree and putty I cannot. I've tried: generating a new key with the putty key generator (SSH-2 RSA) entering a passphrase saving the private key saving the public key and adding a .pub extension copying/pasting the key from the putty key generator window into github attemping to refresh

How do I revert back to earlier commit using source tree

旧巷老猫 提交于 2019-11-29 00:35:02
问题 I have a project stored on my Mac and created a repository for from that location to my project. I am able to commit using source tree but now I would like to revert back to an earlier commit so all my files in folder update? I'm not sure how i do this? 回答1: Temporary Revert Back If you want to temporarily go back to this commit, then come back to where you are. Right click on the commit you want to revert to and click on "checkout". Permanent Revert Back This will add commits to revert all

How can I rebase multiple branches at once?

吃可爱长大的小学妹 提交于 2019-11-29 00:23:23
问题 I currently work on a project in which SVN is used as a repository. Locally, I do several "experiments" with the code that I don't want to commit to the repo. Therefore I use git locally on top of the SVN working directory and use multiple branches for different "experiments". So it looks e.g. like this. C0 ---- C7 (master) \ \---- C1 ---- C2 ---- C4 (exp1) \ \ \ \ \ \---- C3 (exp2) \ \ \ \---- C5 (exp3) \ \---- C6 (exp4) On branch master I want to have the untainted SVN repo, i.e. C0 is SVN

Finishing a feature branch with GIT Flow

谁说胖子不能爱 提交于 2019-11-28 20:39:34
From my understanding one of the advantages of creating feature branches is so that you can easily see where large groups of commits have been merged into the develop branch. Upon finishing a feature branch the recommendation is to delete the feature branch since it is no longer needed for development. Once the branch has been deleted, will the graph still be annotated with "feature/my-fancy-feature" branched and merged? "Upon finishing a feature branch the recommendation is to delete the feature branch since it is no longer needed for development." Difference between "discarding" and "merging