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
42
votes
4 answers

Git/Sourcetree basic branching and merging

Newbie question alert!!! I am just starting to get into using Git, and particularly Sourcetree which seems like a good application for visualizing it. On my first test it went along pretty well, branching and merging (see the top diagram). I know…
Chris
  • 1,557
  • 5
  • 19
  • 36
41
votes
13 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 it's not working Also tried git commit it's not working either from below the sources. Git 'fatal: No such…
idurvesh
  • 644
  • 1
  • 7
  • 19
41
votes
4 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,679
  • 10
  • 46
  • 92
41
votes
5 answers

Cant commit after starting a merge in Sourcetree

When trying to commit after a merge I'm getting this error message: "fatal: You are in the middle of a merge -- cannot amend." How do i resolve this? as far as I know I have resolved all conflicts, i just need to complete the merge and commit the…
johnvdenley
  • 739
  • 1
  • 7
  • 16
40
votes
6 answers

unable to get SSH keys working between sourcetree and github

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…
turbo2oh
  • 2,849
  • 6
  • 34
  • 46
40
votes
5 answers

SourceTree App says uncommitted changes even for newly-cloned repository - what could be wrong?

A remote git repository is just cloned to a local box using Atlassian SourceTree. Even no files have really been modified in the work tree, Atlassian lists a bunch of files right away under "Uncommitted changes". Each file shows same line count both…
Ville Mattila
  • 1,343
  • 3
  • 15
  • 28
39
votes
8 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,492
  • 1
  • 12
  • 17
39
votes
29 answers

Issue with SourceTree while cloning a GitHub repository

I know that similar questions have already been posted here. However, I think my scenario is a bit different. Here is what I have. I downloaded and installed the latest official version of the SourceTree software. Also, I have a GitHub account with…
Pavel Pavlov
  • 697
  • 2
  • 9
  • 18
38
votes
4 answers

Can't clone private repo on github from SourceTree

A similar issue is described here however, my symptoms are a little different and none of the steps there seemed to work. Nor does the suggestion here work. I'm attempting to use SourceTree to clone a private repo belonging to github organization…
spacemanjosh
  • 641
  • 1
  • 5
  • 14
38
votes
2 answers

What is the difference between Stop Tracking and Discard File in git SourceTree

I wanted to know what the difference is between discarding a file and and stop tracking a file in git using source-tree. If I deleted a file in my updated code and I want that file deleted on the repository too should I mark it as stop tracking or…
MistyD
  • 16,373
  • 40
  • 138
  • 240
37
votes
1 answer

Checkout, Fetch and Pull in BitBucket SourceTree

I am using BitBucket for web based hosting of our projects. Along with that I am using their SourceTree for committing and such purpose. I am a bit confused with the Checkout, Fetch and Pull option available in the SourceTree interface and their…
Vishnu Y
  • 2,211
  • 4
  • 25
  • 38
36
votes
5 answers

How to merge develop branch to master branch within SourceTree?

I have created a local git repository in C:\temp\ConsoleApplication1. Then I click the Git Flow button and follow by OK to accept all default settings. Now under the branches, I can see develop and master. Next I click Git Flow again to start a new…
q0987
  • 34,938
  • 69
  • 242
  • 387
36
votes
4 answers

How can I pull all branches in SourceTree?

I didn't see any options to do this in the pull window. What should I do?
Harrison Xi
  • 766
  • 1
  • 5
  • 23
36
votes
4 answers

Why is the GnuPG-sign checkbox disabled in SourceTree?

Using Mac OS X Yosemite (10.10), I cannot active GnuPG-signing of commits in SourceTree, as the checkbox is disabled. How can I enable commit-signing?
baoniu
  • 433
  • 5
  • 8
36
votes
17 answers

SourceTree - git: fatal: remote error: Repository not found

I just signed up for a github account at work and created a new repository. I ran a few git commands over command line and everything worked fine. 1. git init 2. git add . 3. git commit -m "first commit" 4. git remote add origin…
Alaa Awad
  • 3,612
  • 6
  • 25
  • 35