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
29
votes
6 answers

Bitbucket Cloud recently stopped supporting account passwords for Git authentication

I have pushed the code in the morning it was working fine but now I'm trying to push code but getting this error: Bitbucket Cloud recently stopped supporting account passwords for Git authentication
AliRehman7141
  • 873
  • 3
  • 12
  • 33
29
votes
4 answers

Sourcetree adding files in global .gitignore, not in repository .gitignore

I am using SourceTree for my GIT repositories. Today I need to ignore some files; when I added these files to ignore list from SourceTree's "Ignore file" menu and check local .gitignore file, the ignored files are not listed there. Instead these are…
Irfan DANISH
  • 8,349
  • 12
  • 42
  • 67
29
votes
3 answers

What does a hunk mean in relation to pushes on sourcetree

When I make changes on my "develop" branch, I see an up-arrow beside the branch telling me how many changes will be pushed. What confuses me thou is how sourcetree decides what the number is? It seems to relate to something called hunks? What are…
Breako Breako
  • 6,353
  • 14
  • 40
  • 59
28
votes
7 answers

Source tree fix for git Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

FYI this is specifically for sourcetree I am having this error when pulling in sourcetree, it was working just fine yesterday but it suddenly had this error. git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch…
Bon Andre Opina
  • 2,129
  • 2
  • 15
  • 33
28
votes
3 answers

Reverting push to remote with sourcetree

I accidently pushed a feature branch to the remote master. Now I want to revert the master to the previous commit. When I select 'Revert current branch to this commit' only the local branch is reverted, and because the remote master is 55 ahead…
Michael Kloet
  • 281
  • 1
  • 3
  • 3
28
votes
2 answers

How to do git cherry-pick --continue in SourceTree?

How do I continue cherry picking using SourceTree after I resolved conflicts? If I am doing rebase and I get conflicts then after resolving them when I click commit SourceTree lets me continue that rebase. But how to continue cherry pick operation?
szym
  • 3,028
  • 2
  • 20
  • 32
28
votes
2 answers

How To Re-Locate Working Copy In SourceTree

I have a repository added to SourceTree. When I commit a change to the remote repository through XCode I see the change get committed remotely but my working copy doesn't get updated in SourceTree app. I have to rebase the changes to master in…
motionpotion
  • 2,656
  • 6
  • 42
  • 60
27
votes
3 answers

How can I connect to my own Git server in SourceTree?

I have a Git server. However, when I try to add a user to SourceTree, I see that I can add only GitHub, Bitbucket and Stash accounts. How I can run it with my own server?
BuGiZ400
  • 395
  • 1
  • 4
  • 12
27
votes
3 answers

SourceTree password after opening Bitbucket account with gmail

I use my gmail account to create and log into my bitbucket account (similar to how I do with stack overflow). Now I am trying to access my repository through SourceTree. when it asks for password, I am not sure what to enter. When I enter my google…
learner
  • 11,490
  • 26
  • 97
  • 169
26
votes
8 answers

Git hooks doesn't work on Source Tree

Via Terminal everything works correctly but in Source Tree doesn't work This is my pre-commit hook #!/bin/bash # # hook script for swiftlint. It will triggered when you make a commit. # # If you want to use, type commands in your console. # $ ln -s…
Islam Temirbek
  • 571
  • 1
  • 5
  • 13
26
votes
2 answers

Why doesn't the graph display a new branch branching off from the master branch, when I create a new branch in terminal?

Why doesn't the graph in Sourcetree display a new branch branching off from the master branch , when I create a new branch called "testing123" in terminal ? Sourcetree recognises the new branch but it doesn't branch off from the master branch in the…
mynameisJEFF
  • 4,073
  • 9
  • 50
  • 96
26
votes
8 answers

How to undo "Discard" if not committed

I accidentally clicked Discard while committing my changes. So I discarded the whole file but I wanted to discard only some hunk. But I haven't clicked on Commit, I did Cancel. But now I cannot see my code in my file. What can I do to undo the damn…
BPL
  • 277
  • 1
  • 3
  • 4
25
votes
7 answers

How to use Visual Studio (vsdiffmerge) as external diff tool in SourceTree for Mercurial?

I am using Mercurial for my source control and SourceTree to manage it. I want to use Visual Studio's built in diff and merge tool (vsdiffmerge) for comparing files however this is not working. I am currently using the following: Diff…
25
votes
4 answers

SourceTree asks password for SSH authentication at each restart

In SourceTree I'm using OpenSSH as authentication and created + added my SSH keys (on Windows) like this: ssh-keygen -t rsa -C "my@email.com" (and entered filename, password etc) Added the key to the SSH agent: eval "$(ssh-agent)" ssh-add…
25
votes
2 answers

How to move branch in SourceTree into Folder?

I have the following branch structure in git: master feature-2 bugfix/bug-1 feature/feature-1 Now I want to move branch feature-2 into the feature folder. How do I move branches into folders? Either via SourceTree or the git command line.
Stephan Kristyn
  • 15,015
  • 14
  • 88
  • 147