Questions tagged [atlassian-sourcetree]

Atlassian Sourcetree is a Git and Mercurial desktop client for Mac and Windows.

Atlassian Sourcetree include features like Git LFS or interactive rebase.

1943 questions
100
votes
7 answers

How do you open SourceTree from the command line?

Is there a quick and easy way to open a git repository in SourceTree from the command line? I do a lot of git work from Terminal, but sometimes there's no replacement for a good history view/diff. Would love to be able to open without using…
loeschg
  • 29,961
  • 26
  • 97
  • 150
92
votes
13 answers

Getting "fatal: Authentication failed" -error when sending git commands in Windows 10

After updating domain password, accessing git-repo is no longer possible. VS Code and Source Tree as well as Visual Studio are returning the following error message on pull, push, fetch etc.. fatal: Authentication failed Normally a credentials…
Jesper Wilfing
  • 11,157
  • 5
  • 29
  • 32
90
votes
10 answers

How do I ignore all files in a folder with a Git repository in Sourcetree?

I have a Bitbucket Git repository managed with Sourcetree. I have two folders that I want to commit, but I need to ignore all the files in these folders, because they contain only temporary files. How can I do that?
rubdottocom
  • 8,110
  • 10
  • 39
  • 59
88
votes
6 answers

Sourcetree - upgraded to latest version, git-flow missing

Hey I just updated Sourcetree on my mac to the latest version (2.2). Where did git-flow go? And how do I re-enable this functionality? I just lost myself without it!
Ryan Kempe
  • 927
  • 1
  • 7
  • 12
87
votes
4 answers

GIT: change commit date to author date

Is it possible to change the commit date from my commit to the author date? I adapted some commits and now the dates are all the same. I want to set it back to the old dates (or the author dates). Is this possible? I am using Sourcetree so I have…
kevingoos
  • 3,785
  • 4
  • 36
  • 63
84
votes
2 answers

Using Source Tree, rebase with conflict, rebase doesn't work after conflict resovled

I'm using SourceTree as my git tool on Windows. I have a main branch and a feature branch and I can't get SourceTree to perform a rebase when I have a conflict. main looks like: c1 -> c2 -> c4 -> c5 feature looks like: c1-> c2 -> c3 I want to…
user4007604
84
votes
8 answers

.gitignore file in Sourcetree not working

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…
SteveSt
  • 1,277
  • 2
  • 16
  • 23
77
votes
26 answers

SourceTree keeps asking for Github password

My organization is switching from Bitbucket to Github for project management. Today, I was trying to transfer our most recent project from Bitbucket to Github, by using SourceTree. I added a second remote repository to the project (using the URL of…
Abigail Fox
  • 1,623
  • 3
  • 16
  • 22
76
votes
5 answers

Where is git-blame in SourceTree

I'd like to see who contributed which line/change to a file. git-blame does exactly that. So does SourceTree have a git-blame view?
wnrph
  • 3,293
  • 4
  • 26
  • 38
73
votes
7 answers

SourceTree error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

I'm using SourceTree and try to clone from a general github repository, but I got this error: fatal: unable to access 'https://github.com/mfitzp/15-minute-apps.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version …
yu yang Jian
  • 6,680
  • 7
  • 55
  • 80
73
votes
5 answers

How can I rebase multiple branches at once?

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…
moktor
  • 1,011
  • 1
  • 8
  • 12
72
votes
6 answers

cannot pull Git remote repository from Sourcetree

I Generated ssh keys and configured my git and SourceTree. I could git pull and do other operations from Git-bash. Note: I have added the following in .bashrc to make it work. eval `ssh-agent` ssh-add However, when I try to git pull in SourceTree,…
72
votes
31 answers

'cannot open git-upload-pack' error in Eclipse when cloning or pushing git repository

I am not able to clone or push to a git repository at Bitbucket in Eclipse: It's weird, because a day before I didn't have any problem. I have downloaded the sts 3 times with no luck. This error keeps showing. Also I have installed SourceTree and…
kiduxa
  • 3,339
  • 11
  • 37
  • 52
72
votes
10 answers

Retrieve deleted stash in Git using SourceTree

I am using source tree. I had created a stash of multiple changes and by mistake deleted it. Is there a way to retrieve them back?
tusharmath
  • 10,622
  • 12
  • 56
  • 83
70
votes
4 answers

Revert a merged pull request on Bitbucket

I've created a pull request and I've merged it to an wrong branch. How can I revert it? As far I've been to figuring out taking a look over there, I'm able to hard reset the destination branch... but, how about the pull request in origin…
Jordi
  • 20,868
  • 39
  • 149
  • 333