youngmon/atlassian-qna huggingface dataset:
Push my changes from project.git into my repository after changes
Asked by Michael Schrading:

Hi.

On a local server I have a repository build with git init and outside a clone build with git init --bare project.git.

When I push my changes to this server to project.git after this I have to pull this changes from project.git to the main repository manual. I go into the project.git directory on the server and perform

git push /path/to/the/repository/directory master:master.

How to manage this automaticaly after push my changes to project.git

I hope you could understand what I meant.


Answers:
author: Axel Roest
body: Hi,

you should probably set the remote origin of your local repository.

You can do this with a command, similar to the following (for github):

```
git remote set-url origin git@github.com:USERNAME/OTHERREPOSITORY.git
```

```

```

for more info:

<http://stackoverflow.com/questions/7259535/setting-up-a-remote-origin>
Remember passwords problem
Asked by Guy Fingen:

Hi,

I am required to enter my password every few minutes.

This issue has started with the new version.

Maybe it's a bug?

Thanks, Guy


Answers:
author: Guy Fingen
body: The problem was solved by itself.

Thanks, Guy


author: rahuldanwade
body: Hi @Guy Fingen

Did you add the auth details to your keychain when you authenticate? Did you correctly authenticate?

While authenticating click on check-box for "Save password in your keychain"

If it doesn't work for you please refer below links

<https://answers.atlassian.com/questions/48102>

<https://answers.atlassian.com/questions/36585>
How to reverse change from some specific commit in sourcetree
Asked by YOUWEI QIN:

Hi All,

I'm a newer for sourcetree. Here I have a question about How to reverse change from some specific commit in sourcetree;

I'm using sourcetree version 1.6.19.0. I can only fine "reverse file" command on the top right of the file. What I'm aiming for is the reverse hunk and reverse line button. I've seen these two button before, but I cannot find it now.

Cheers,

Youwei


Answers:
author: Seth
body: In the Log view, if you click on a commit, and then a particular file in that commit, it will show the diff of the file in the bottom right pane.

Each hunk should have a "reverse hunk" button. If you select any modified lines in the hunk (click and shift+click) you should be given the option to reverse lines.

comments: author: YOUWEI QIN
body: Thanks SethI followed your instructions. Could you please check my solution in the next comments (as I cannot attach picture in this comments) if I did things correctly.


author: YOUWEI QIN
body: Hi Seth,I updated sourcetree with Version 1.6.20.0, and now it works


author: YOUWEI QIN
body: thanks Seth. It should be tag with sourcetree.


author: YOUWEI QIN
body: Hi Seth,

I selected the uncommitted changes and the previous commit, and select the file I want to reverse in Log view. As can be seen from the right panel, there only be reverse file option available.

Cheers,

Youwei

image2015-8-20 10:9:42.png

image2015-8-20 10:9:59.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-reverse-change-from-some-specific-commit-in-sourcetree/qaq-p/374749?attachment-id=11165){#link_116a147df75b1a}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11149/1/image2015-8-20%2010%3A5%3A54.png){#display_116a147df75b1a_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-reverse-change-from-some-specific-commit-in-sourcetree/qaq-p/374749?attachment-id=11166){#link_116a147df75b1a_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11149/2/image2015-8-20%2010%3A9%3A59.png){#display_116a147df75b1a_2}  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-reverse-change-from-some-specific-commit-in-sourcetree/qaq-p/374749?attachment-id=11167){#link_116a147df75b1a_1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11149/3/image2015-8-20%2010%3A5%3A21.png){#display_116a147df75b1a_4}  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-reverse-change-from-some-specific-commit-in-sourcetree/qaq-p/374749?attachment-id=11168){#link_116a147df75b1a_2}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11149/4/image2015-8-20%2010%3A9%3A42.png){#display_116a147df75b1a_6}

comments: author: Seth
body: Don't select both commits, only select the commit that has changes you want to reverse.


author: Seth
body: Not sure why you tagged this question as "bitbucket" when you are clearly asking about SourceTree features. I changed the tags, but any users who subscribed to the SourceTree tag probably didn't see your question.
How do I set up a BitBucket account in addition to the GitHub account I already have set up?
Asked by amitranan:

I have a personal account on GitHub that is already set up on SourceTree. I'd like to be able to use my BitBucket account for work on SourceTree as well. Is there an intuitive way of switching back and forth between the two?

Any help would be greatly appreciated! Thanks!


Answers:
author: mbaumann1
body: This might be helpful.

<http://stackoverflow.com/questions/19048618/how-to-work-with-two-different-bitbucket-accounts-in-sourcetree>
How do I get this pane back?
Asked by angst:

Somehow this pane got hidden and I can't figure out how to turn it back on.

Untitled-1.jpg  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-get-this-pane-back/qaq-p/413383?attachment-id=11532){#link_116a14b39ea5c4}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12357/1/Untitled-1.jpg){#display_116a14b39ea5c4_0}


Answers:
author: Seth
body: <https://confluence.atlassian.com/display/SOURCETREEKB/Wiping+SourceTree+Preferences>

Asked and answered:

<https://answers.atlassian.com/questions/15282793>

<https://answers.atlassian.com/questions/21627556>
Error occurs when trying to "open selected version"
Asked by qxfdj92d47lj:

In SourceTree, when attempting to open an old version of a file from the log view I get a Windows Script Host error. The file in question is a JavaScript file and the error details appear to indicate that SourceTree is attempting to *execute* the file, not open it.

"Error: 'goog' is undefined"

The first line of the file is a goog.provide() call and I am assuming this is causing the error.


Answers:
author: Seth
body: SourceTree doesn't open files within itself, it launches whatever process is the operating system "default" for that filetype. On Windows, the default for .js files is usually to execute them.

If this isn't something you do (I've never known anyone to want that), you should be able to set your favorite editor as the default program for .js files to resolve the issue.


author: qxfdj92d47lj
body: I changed the default program in Windows and now it works great. Thanks for the tip!


author: qxfdj92d47lj
body: Ah, interesting. That makes sense it just didn't occur to me that it was based on the Windows default for some reason. I don't know why Windows would set the default to execute JS files...who would want that as the default?
How to resolve when master is behind origin/master and develop branches
Asked by Ted Singh:

New to git and SourceTree, but I tried using GitFlow and I now see that master (local?) says that it is 11 behind origin/master and develop. How do I sync up everything or do I need to?

image2015-8-12 17:20:42.png

I freely admit that I need to learn git - but any help to clear things up is appreciated.  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-resolve-when-master-is-behind-origin-master-and-develop/qaq-p/349994?attachment-id=6997){#link_1173d11d462fcf}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10454/1/image2015-8-12%2017%3A20%3A42.png){#display_1173d11d462fcf_0}


Answers:
author: Johannes Kilian
body: That's a typical situation in development, having a colleague pushing some changes to the remote repository since you have cloned the repository - so your local repository is now "behind" the remote repository (that means: the remote repository (named "origin") is a few commits ahead your local repository)

The command you need is "*git pull* " (or "*git fetch*") - which pulls the commits from the remote repository into your local repository ...

* *git fetch* : fetches the changes into your local repository only; you have to merge the changes by a subsequent "*git merge*".
* *git pull*: fetches the changes, merges them and commits the changes (if there are no conflicts during merge) into your local repository. (That's the method I would recommend for beginners)

2015-08-13_06-41-50.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-resolve-when-master-is-behind-origin-master-and-develop/qaq-p/349994?attachment-id=1003){#link_1173d122655ace}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10455/1/2015-08-13_06-41-50.png){#display_1173d122655ace_0}


author: Ted Singh
body: Thanks for the excellent answer - my problem resolved - and I learned something too!
How to use branches?
Asked by Donn Hardy:

I feel like I'm missing something very obvious. I have a master branch. I can create new branches and make changes in them. I can commit and push those changes. My problem is that those changes always seem to go into every branch. There's never a need to merge because the master branch already has the changes. Could someone explain the basic workflow for creating a branch, making changes in only the new branch, and then merging those changes to the main branch?


Answers:
author: Seth
body: After you create a branch, you need to check it out. You can double-click the branch name in the left panel, or right-click the branch name and choose "Checkout \<branchname\>..."


author: Johannes Kilian
body: You also can checkout the newly created branch directly on creation via a SourceTree Option:

2015-08-12_06-36-13.png

Within my setting it's default: each time I create a branch, SourceTree immediately switches to the new branch, so I can start working at it immediately ...

Switching to another branch (like your master branch) you have to checkout your branch as @Seth Foss describes  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-use-branches/qaq-p/339808?attachment-id=3565){#link_1173d134decb5b}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10178/1/2015-08-12_06-36-13.png){#display_1173d134decb5b_0}
Project logo is broken
Asked by zlob:

'Refresh logos' button doesn't work. How to fix this? Projects hosted on bitbucket.

Mac os 10.9.5 SourceTree 2.0.5.2

sourcetree.jpg  
[](https://community.atlassian.com/t5/Sourcetree-questions/Project-logo-is-broken/qaq-p/401487?attachment-id=11051){#link_116a15433f91c1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11981/1/sourcetree.jpg){#display_116a15433f91c1_0}


Answers:
author: Tugrul Ozdemir
body: Place your icon file to root folder of your project, after this you will see your icon at sourcetree window
Missing "Stage hunk" button after updating?
Asked by gregobrien:

Hi I'm using SourceTree on Windows 7, after updating the client this morning I seem to be missing features.

Specifically, in the area that displays changes within the currently selected file, there used to be the option to "Stage hunk" or "Discard hunk".

I now only seem to have the option to stage or discard the entire file, which is not ideal if I only want to discard or stage certain hunks.

Clicking on a line of code within this area used allowed me to stage or discard that individual line, the ability to do this seems to be missing or broken too.

Were these features removed completely, or is there now another way to use "Stage hunk" feature?


Answers:
author: Seth
body: Duplicate: <https://answers.atlassian.com/questions/24283835/stage-lines-hunk-are-gone>
SourceTree continuously asks for password
Asked by Jeff Stewart:

I have the latest SourceTree, running on Win 8.1 Pro. My remote repo is Git, hosted on visualstudio.com.

I have tried entering a password via Options-\>Authentication, but there seems to be no way to edit anything but the user name.


Answers:
author: Jeff Stewart
body: \<crickets\>


Tags: git

password

windows
Sourcetree (OSX): workflow for merging github pull requests
Asked by stepelu:

I am using Sourcetree to manage a repository on github.

I recently received a pull-request for relative to such github repository. Ideally I would like to:

1. configure Sourcetree to receive notifications of github pull requests in the application
2. checkout the pull request in my local repository to inspect the changes, run tests ecc ecc
3. accept the pull request (i.e. merge and push to the github repository)

I am not sure if point 1. is supported right now but I am sure the rest can be done in Sourcetree without resorting to command-line git.

Can you please help me out with the relevant steps that have to performed to achieve points 2. and 3. ?

Thank you

Stefano


Answers:
author: Bal?zs Szakm?ry
body: (These instructions are for windows, but it should be exactly the same for OSX with the equivalent actions for double click and right click.)

1. Not supported.
2. For looking at the Diff and making comments, your best option is the GitHub web interface. To view/compile/run the code on your computer, you need to checkout the source branch of the pull request:
   1. Fetch.
   2. In the Remotes section, open the origin node, locate the source branch of the PR and double click it to checkout that branch. If you get a dialog, just press OK without changing anything.
   3. Now you can compile, run, etc.
3.   
   1. Check out the target branch, like above.
   2. Right-click the name of the source branch, select "Merge \<source\> into current branch.
      1. If there are merge conflicts, resolve them and commit the changes without editing the contents of the stage in the commit dialog.
      2. If there are no conflicts, the merge commit will be created automatically.
   3. Push the merge commit (the target branch).
What are the differences between Write and Admin when adding a user?
Asked by Steven Gordon:

In my opened repo, I selected Settings \> Access Management \> Users: Add. For the new user, the dialog box presented Read, Write, and Admin (privileges?). What does Admin add to Write? If you expect a user to help out with code occasionally, is Write more appropriate than Admin?


Answers:
author: Johannes Kilian
body: A repo admin is able to set the rights for the repo as well - a write user can only work with the repo, but cannot modify the access rights for the repo

comments: author: Bal?zs Szakm?ry
body: Cannot modify any of the settings, not only the access rights.


author: Johannes Kilian
body: Thanks for the correction, Balazs - replace "rights" with "settings" in my answer above (access rights are part of the repository settings ... ;-)
How do I configure which plink.exe binary is used by SourceTree
Asked by TetsujinOni:

My SSH keys work fine from other machines, and troubleshooting what is wrong on the configuration of this machine is outside the scope of what I want to engage in. mSysGit will correctly clone using the PAgeant.exe-cached key pair and GIT_SSH binary link to my chocolatey-installed PLINK.EXE, but SourceTree is rather insistent about using the bundled version.

Is it possible to redirect Sourcetree to cooperate with the configured environment variable?


Answers:
author: Hans Nijbacker
body: I would recommend not to use plink at all, because it has very bad performance (factor 40x) compared to OpenSSH:

<https://marci.blogs.balabit.com/2009/11/putty-performance/>
Why is the Mercurial rebase feature disabled in SourceTree for Windows
Asked by Kenneth Cochran:

For some reason I am unable to use the mercurial rebase feature in SourceTree for Windows. My current version is 1.6.18.0 but this problem as existed for a while. If I open up the options dialog I can see it checked but greyed out.

Options.png

I have tried this using both the *embedded* client and the *system* client.

If I try to perform a rebase from the context menu by right-clicking a change set the rebase feature is disabled.

ContextMenu.png

I've examined my Mercurial.ini and I have the following extension entries:

```
[extensions]eol=largefiles=rebase=transplant=extdiff=fetch=mq=
```

I have also looked at the .hgrc for the repo I am using and it does not have any **extension** section. I'm certain this is not the cause because I have an identical clone of the same repo on my Mac and the SourceTree for Mac OS allows me to rebase just fine.

Any ideas?  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-is-the-Mercurial-rebase-feature-disabled-in-SourceTree-for/qaq-p/295080?attachment-id=9033){#link_116a1609c4dab5}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9160/1/Options.png){#display_116a1609c4dab5_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-is-the-Mercurial-rebase-feature-disabled-in-SourceTree-for/qaq-p/295080?attachment-id=9034){#link_116a1609c4dab5_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9160/2/ContextMenu.png){#display_116a1609c4dab5_2}


Answers:
author: John Zhou
body: Only option it seems is to either use the terminal or find another GUI client.


author: Bill Guo
body: same issue in 1.8


author: AlexanderK
body: The same in 1.6.21


author: microbial
body: I have the same problem on 1.6.14.0


Tags: mercurial

rebase

windows
How can I permanently remove this mysterious tab?
Asked by Zack Stout:

Hello everyone,

I have been experiencing this rather strange "mystery" or "ghost" tab that auto opens upon starting SourceTree. If you wait (forever) the tab eventually finishes loading and it becomes apparent that the repo is for my C drive.

I have found no way of fixing this. I have uninstalled SourceTree, restarted my computer, reinstalled, followed by yet another restart and this mystery repo continues to show up.

I have followed [guides](https://confluence.atlassian.com/display/SOURCETREEKB/Wiping+SourceTree+Preferences)online to do a forced cleanup, which also failed to remedy this problem.

Thank you to anyone who can help out.

mystery_repo.png

[](https://community.atlassian.com/t5/Sourcetree-questions/How-can-I-permanently-remove-this-mysterious-tab/qaq-p/182100?attachment-id=11469){#link_116a15e0a184df}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5322/1/mystery_repo.png){#display_116a15e0a184df_0}


Answers:
author: Seth
body: To attack this from the other end...

Did you intend to make a repository of your entire C drive?

If not, make sure you can view hidden files and folders, then look for a .git folder in C:\\. Delete it.

You may also need to follow Balazs' steps to remove a stored bookmark.

comments: author: Zack Stout
body: @Seth,Woo! That was a solution. I guess I wasn't aware that those .git folders acted as a tag for repos. Thank you.


author: Seth
body: It's doesn't tag the repo so much as store the entire repo (except your working copy of the repo), but yeah, "my C drive is a repo" didn't sound like something you had done intentionally.


author: Pedro Luis Camu?as
body: I had the same problem and I solved it with this solution


author: Bal?zs Szakm?ry
body: (Sorry in advance if any of this is trivial.)

* Close the mystery tab
* Open the bookmark bar if not already open (CTRL+B)
* Remove the bookmark for the mystery tab

If this does not solve your problem, it might be that the place where ST stores the state of the tabs is not writeable by ST. (Unfortunately, I don't know where that is.)

comments: author: Zack Stout
body: Balazs, I appreciate the advice. This was not a solution however. The bookmark bar does not show the mystery repo.


author: Thi?u t? Ph?m Xu?n B?ch
body: How to do this with version 3.0.12? I use windows 10 x64 but cannot see the bookmark bar?
Stage Lines / Hunk Are Gone
Asked by Reto Kohli:

After updating to 1.6.19.0 (Windows, running Windows 8.1 64bit), "stage lines" and "stage hunk" have again disappeared.

This has happened before, see <https://answers.atlassian.com/questions/9882209>

Any fix for this?

Thanks!


Answers:
author: Dan Glasser
body: See: <https://jira.atlassian.com/browse/SRCTREEWIN-3566> and <https://jira.atlassian.com/browse/SRCTREEWIN-3569>

The workaround is to uninstall and reinstall the previous release


author: Nathan Niesen
body: I was hoping this would also fix the fact that you can no longer resize the panes for file list and diff view.

comments: author: Nathan Niesen
body: This was on the "File Status" tab. I re-sized the repository pane and that fixed whatever was preventing me from adjusting the slider between the file list and the diff panel.


author: dpzA21
body: Check for Updates in Help tab. Now is fixed in v1.6.20.0.


author: Dan Glasser
body: Thanks @Seth. I posted the tickets I found as an answer. I'm back up and running now.


author: Seth
body: @DS Morse Support requests are private. If support creates a bug report in JIRA as a result of your ticket (or directs you to an existing bug report), please post a link back here as an answer.You may want to add a link to this question to your support request so they can answer publicly if they want to.


author: Seth
body: @Dan Glasser You probably have to uninstall the current version before installing an older one.


author: DS Morse
body: I have the same experience.. I even cleared out all the application cache in my users directory.. with no luck (so don't do that)


author: Dan Glasser
body: Is there any way to downgrade (without losing settings)? I tried an older installer but it did not proceed after recognizing the newer installed version.


author: Seth
body: Sounds like a bug. Bugs can be reported at jira.atlassian.com
How to remove .svn from my git repo?
Asked by NancyMilligan:

I didn't have my .gitignore files setup before I committed my project. Now all my .svn/\* files are being committed. How can I expunge these files from my repo and tell git to stop tracking them (using SourceTree)? Thanks!


Answers:
author: Johannes Kilian
body: Doing as @sreekumar menon mentioned, the .svn is still part of your history - but will not be part of the future history.

If you want to remove your svn-folder permanently from your complete history, have a look for example at this:

<https://help.github.com/articles/remove-sensitive-data/>

comments: author: sreekumar_menon
body: Thanks for the link-this worked for me -git rm -r --cached some-directorygit commit -m 'Remove the now ignored directory "some-directory"'git push origin masteralso add it to .gitignore.


author: sreekumar_menon
body: Johannes link will remove it from entire history, if you don't care about appearing in history the above should work.


author: sreekumar_menon
body: In file status view, select all files, and you may right click on the file/folder and select stop tracking within sourcetree and add it to .gitgnore.


Tags: git
Confluence Cloud - Creating a macro via REST API
Asked by Cristina Gatt:

We are currently trialing a migration from Confluence DC to Confluence Cloud and we are trying to find a way to update the pages which have custom macros.

We have managed to build some of our Custom Macros for Cloud using Atlassian Forge and are now looking to migrate the DC macro data to the new Macros implemented in Cloud.

Is there a way to add a macro to an existing page via Confluence Cloud REST API or something similar?


Answers:
author: KC Wong
body: Looking for the same information.


Tags: cloud

confluence-cloud