Questions tagged [sourcetree]

SourceTree is a free Mercurial and Git Client for Windows and Mac that provides a graphical interface to connect with Git and HF services.

SourceTree is a product of Atlassian. It is a free Mercurial and Git Client for Windows and Mac.

It supports Butbucket, GitHub, Kiln and other Git and HF services as well.

229 questions
72
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,127
  • 2
  • 13
  • 21
59
votes
4 answers

How to disable git gpg signing

I'm using git gpg signing. I want to disable it. I've set .gitconfig [user] name = NAME email = EMAIL signingkey = KEY ... [commit] gpgsign = false My commits are still signing by default. PS: I also disabled from Sourcetree…
Thellimist
  • 2,939
  • 3
  • 26
  • 43
41
votes
2 answers

How to add icon to my repository?

I have found that Gitlab and SourceTree support icons for every repositories which make them more specific and easy to find at one glance. How is this possible?
41
votes
19 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,153
  • 2
  • 14
  • 21
34
votes
12 answers

Git cannot lock ref 'HEAD': unable to resolve reference HEAD

I'm trying to commit the changes to my repository but I receive the error below: git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\Contronym\AppData\Local\Temp\bkdweixb.mnu fatal: cannot lock ref 'HEAD': unable to…
Jake Miller
  • 2,034
  • 1
  • 17
  • 38
32
votes
4 answers

Gitkraken Desktop App - Error login: "Please log in to continue"

Who has been working with client GitKraken as GIT, you will know that authentication required? For the application, log in with: firstemail@outlook.com The repository is with: businessemail@bussiness.com It requires credentials to make a pull, but I…
1antares1
  • 896
  • 1
  • 8
  • 15
32
votes
8 answers

warning: templates not found /usr/local/git/share/git-core/templates

I get this error warning: templates not found /usr/local/git/share/git-core/templates when I cloning repo in local repository this link, this link, and this link I tried this method and I just waiting more than 20 minutes but repo doesn't clone. I…
Alexander Khitev
  • 5,168
  • 13
  • 45
  • 96
31
votes
3 answers

GitLab rename branch and start over on another

I just started on a new project and I'm using GitLab with SourceTree. I had created a branch (origin\master) but I did the mistake of using this branch for my development, so I pushed my first few changes to this branch. Now I learned that this…
Ray
  • 4,019
  • 7
  • 33
  • 82
30
votes
10 answers

Install SourceTree without an Atlassian account?

I'm trying to use SourceTree for a class that I'm teaching. In order to do that we need to install SourceTree onto the school's Windows computers. When we try to install SourceTree (Version 1.9.10.0) it demands an Atlassian account before it will…
MikeTheTall
  • 2,742
  • 3
  • 24
  • 36
25
votes
1 answer

SourceTree - how to checkout to remote repo branch

I create a new branch in remote GIT repository. Repository stored on BitBucket. In my my local repository I can see this new branch with SourceTree. It appears in commits list, on same commit I create branch from. But I cannot see this new branch…
Pavlo Morozov
  • 1,872
  • 2
  • 20
  • 48
22
votes
5 answers

SourceTree Won't Show All My Changes

I want to commit my works. But when I want to see what I changed and wrote them into commit message, I saw some of my changes won't show. What is the problem?
Al00X
  • 1,003
  • 1
  • 8
  • 16
21
votes
2 answers

Can SourceTree show diff side-by-side

I started to use SourchTree recently. The default format of the diff is to use "-" or "+" to show changes. I like to have 2 files side-by-side and show the change line to line. However, I cannot find the option to change the format. Can you help?
user1443721
  • 678
  • 1
  • 8
  • 26
21
votes
8 answers

fatal: Failed to resolve HEAD as a valid ref

I am getting fatal: Failed to resolve HEAD as a valid ref. whenever I try to commit. I have tried echo ref: refs/heads/master >.git/HEAD but its not working Also tried git commit its not working either from below sources Git 'fatal: No such ref:…
idurvesh
  • 424
  • 1
  • 4
  • 19
17
votes
7 answers

How to remove a file from Git Pull Request

I have a pull request opened where I have some project.lock.json files which I do not want to merge while merging my branch to main branch. Is there a way to remove thos project.lock.json files from my Pull Request?
tavier
  • 1,510
  • 2
  • 19
  • 43
14
votes
7 answers

How to logout / switch accounts in Sourcetree

After installing Sourcetree, you are prompted to log into your Atlassian account. However, once you are logged in, there is no logout option to log out or switch accounts. How do I do this?
Nate
  • 2,221
  • 3
  • 17
  • 29
1
2 3
15 16