atlassian-sourcetree

How do I use Meld as a merge tool with Sourcetree on Windows?

戏子无情 提交于 2019-12-02 18:57:49
I have the following in my .gitconfig file: [user] name = myname email = myname@gmail.com [core] autocrlf = true excludesfile = C:\\Users\\myname\\Documents\\gitignore_global.txt [diff] tool = meld [difftool "meld"] cmd = "C:/Program Files (x86)/Meld/meld/meld.exe" prompt = false [merge] tool = meld [mergetool "meld"] cmd = "C:/Program Files (x86)/Meld/meld/meld.exe" [difftool "sourcetree"] cmd = "C:/Program Files (x86)/Meld/meld/meld.exe $PWD/$LOCAL $PWD/$BASE $PWD/$REMOTE" [mergetool "sourcetree"] cmd = 'C:/Program Files (x86)/Meld/meld/meld.exe' \"$LOCAL\" \"$REMOTE\" \"$MERGED\"

SourceTree on Windows: How to connect to SSH?

女生的网名这么多〃 提交于 2019-12-02 18:02:45
I have an SSH access to my web hosting, it works great with PuTTY (I just had to enter my domain, username and password), however it seems much more complicated with SourceTree. While PuTTY has a field for "Host Name", "username" and "password", SourceTree doesn't and requires a special file " .ppk "?! I need to connect SourceTree to my web hosting via SSH for the obvious reason that I want to use it to push to a remote repository located on my web hosting. So how do I get a .ppk file generated from my domain/username/password? Any help greatly appreciated! PS: I've noticed that they made it

How to rollback everything to previous commit

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 16:34:32
Recently in a project with multiple people, a commit was made as seen in the image below. Marked in red you can see a commit with the description/comment of 'Merge?'. This commit added numerous files and altered numerous others and was never intended to take place. Using atlassian-sourcetree what do I need to do to roll everything back to the commit highlighted in blue? (I am 8 commits behind as seen in the screenshot.) If you have pushed the commits upstream... Select the commit you would like to roll back to and reverse the changes by clicking Reverse File , Reverse Hunk or Reverse Selected

.gitignore file in Sourcetree not working

与世无争的帅哥 提交于 2019-12-02 16:09:22
I am working on a maven project and I want to ignore the files generated and stored in the /target folder of my project (Evaluation) root folder.In the root of my git repository I have a .gitignore file with the following entries (backend is just a folder which contains the eclipse project Evaluation) backend/Evaluation/logs/ backend/Evaluation/target/ For some reason SourceTree does not ignore the files stored in these two folders and when I compile my project there are some uncommitted changes which are some .class files inside the /target folder. Why is this happening ? I also tried to

Is there a way to get a visual diff on two branches in SourceTree?

时光怂恿深爱的人放手 提交于 2019-12-02 15:40:57
Does Sourcetree offer a way to visualize differences between git branches? I'm looking for: names of files that have changed diffs between these files Anton Glukhov Use ⌘ (OSX) or CTRL (Windows and Linux) and choose any two commits you like in log view. It does not matter what branch the commits belong to. As a result you will see something like... Displaying all changes between f03a18bf0370c62bb5fb5c6350589ad8def13aea and 4a4b176b852e7c8e83fffe94ea263042c59f0548 ...down below. Gan Another way to do this is to right-click on a branch and select the "Diff against current" context menu command (

Sourcetree remote: Invalid username or password

倾然丶 夕夏残阳落幕 提交于 2019-12-02 14:48:15
Im trying to push to github with sourcetree but get the following error: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed for ' https://github.com/myname/myrepo/ ' Pushing to https://github.com/myname/myrepo Completed with errors, see above. However when I go to tools > authentication > my github account And click edit > refresh oauth token A page opens and I get: Authentication Successful SourceTree has been successfully authenticated. You may now close this page. It

How to see remote tags?

吃可爱长大的小学妹 提交于 2019-12-02 14:33:57
In Atlassian SourceTree, how to know which tags are only local and which are also in remote? When creating a tag you get the option "Push tag to: ...", but how to know if a tag has been pushed or not after it is created? I can see all my tags locally, but I need to be sure that they are present in remote so that other developers can pull them. Even without cloning or fetching, you can check the list of tags on the upstream repo with git ls-remote : git ls-remote --tags /url/to/upstream/repo (as illustrated in " When listing git-ls-remote why there's “ ^{} ” after the tag name? ") Note that you

git add wont stage files - git cache confused?

我的未来我决定 提交于 2019-12-02 12:11:56
I have a feeling my git cache is getting confused fairly often. I work on Mac and use both git at terminal and SourceTree. I add or modify few files but I often notice that even files I have never modified in any way show as staged. This is very confusing already. However, even more confusing is that often issuing git add . to add all of the files to staging area does nothing. I have been using git for few years and have never had this before. I read all posts here on SO and none of them resolved this issue for me. I found one suggestion to clear git cache like: git rm --cached path/to/file

git: why can I checkout to the commit I deleted?

不想你离开。 提交于 2019-12-02 07:00:47
问题 I have a branch with three commits: mybranch: a -> b -> c I pushed it to the remote repo. Then I decided that I don't want to keep the commits b and c , so deleted them as described here: git reset --hard HEAD~1 git reset --hard HEAD~1 git push origin mybranch -f Afterwards, I checked git log and confirmed that only the commit a was visible. However: I still can checkout to the commits b and c . Why is that? when I used SourceTree to look up my git repo, I still could see these commits in my

Git is very slow on Mac / OSX

天涯浪子 提交于 2019-12-01 18:12:06
Whenever I use anything Git related on my Macbook (Brand-new Macbook Pro with El Capitan), it takes almost a full minute for each command. I did a simple GIT_TRACE=1 git stash and got back this: 17:04:27.460826 git.c:557 trace: exec: 'git-stash' 17:04:27.463136 run-command.c:347 trace: run_command: 'git-stash' 17:04:32.503827 git.c:348 trace: built-in: git 'rev-parse' '--git-dir' 17:04:34.521223 git.c:348 trace: built-in: git 'rev-parse' '--show-toplevel' 17:04:35.527473 git.c:348 trace: built-in: git 'config' '--get-colorbool' 'color.interactive' 17:04:36.534443 git.c:348 trace: built-in: git