youngmon/atlassian-qna huggingface dataset:
Sourcetree over ssh for local repository?
Asked by J L:

Hi,

I have a set-up where I have a remote git server, a local git/development machine running Linux, and a Windows development machine.

I generally use putty from windows to log into my local linux development machine, which is where my local git repository resides, as well as where I do my compiling, etc.

I'd like to use SourceTree on my windows development machine to manage this git repo.

It it possible to add a working tree via SSH, so that I can use windows to manage my local git repository on my linux dev machine? I don't want to have a repo on both my windows and linux dev machines, and I don't want to go through a two-stage push process.

My other option I suppose is to add my linux machine as a network drive under windows and connect that way, but it's awfully slow.

Thanks!


Answers:
author: Paolo Furini
body: I think it's not a supported setup. A local repo should be local in Git philosophy..

Maybe you can try one of those virtual drives that expose SSH, S3, FTP etc connections as local win drives. But you're entering in a "red" zone... if you have some network delay, or reconnection, you may end up with a corrupted repo, as git thinks it's working on a reliable disk device.

My personal advice is to clone your repo the standard way, and stay on the safe side...

comments: author: J L
body: Yeah, I suppose. Mind you, I'm essentially doing the same thing when I use git over ssh. What would be best is if all the processing could be done on the linux end, and SourceTree just managed it's control over ssh.

Cloning it again on the windows side isn't really a solution though, as I'd have to make changes on windows, push to my linux (to compile, etc), and then push to remote. And that's if it works, otherwise I'd have to redo on windows, push to linux, rebase, and then psuh to remote.


author: Paolo Furini
body: I see.. I'm afraid that ST can't simply route git commands over SSH to a remote server, and I don't know another gui client that is capable to do this.

Maybe you can dive into the dark side of hooks.. ;) a simple start: [](http://ryanflorence.com/deploying-websites-with-a-tiny-git-hook/)<http://ryanflorence.com/deploying-websites-with-a-tiny-git-hook/>


Tags: git
Can't delete missing files error : fatal: pathspec ''file did not match any files.
Asked by benoitfreslon:

I Have missing files in my project but I can't delete this ghost files.

I tried to removed them with SourceTree I also tried to ignore the folder and stop tracking files.

When the file is restored I see the same file twice.

Please help :(

![](https://imagizer.imageshack.us/v2/707x120q90/593/oo2l.png)

Here the error

![](https://imagizer.imageshack.us/v2/689x619q90/838/g9ig.png)


Answers:
author: benoitfreslon
body: Finally I deleted the folder on Windows wihtout any problem.

Conclusion : Never use special chars on file names :(


author: benoitfreslon
body: Pearhaps.

Actually I renamed the folder without spaces and special chars.

But how manually remove index files in git ?


author: Seth
body: I'm guessing the special characters in the folder name are causing problems. Especially the apostraphe in j'ecris.
Source tree 1.4.1.0 Memory leaks
Asked by Artur Charaev:

Hi!

Thank you for Source tree! It's best git gui for me. But sometimes happens memoty leaks issues. Usally Source tree use just about 70-250mb, but sometimes, without any visible reason it starts use more and more memory until all available memory ends. It's happening not only with me, but with many of my collegues. And the only way to stop it is restart source tree. By the way, previous versions had the same issue.

For example, my platform is win7, 6gb DDR. I have only one quite big git repo (100000 files) with few branches (about 2-4 branches) and a lots of branches in remote.![](http://screen.fst.su/User1Shot2014-02-07163518.png)


Answers:
author: Artur Charaev
body: Yes it is really SourceTree, but there is also many git.exe processes, here is taskmanager screenshot. It happens just after starting SourceTree. I have only switched one branch, with changes in about 500 files. 4GB RAM!

![](http://screen.fst.su/User1Shot2014-02-11120356.png)


author: Adrian Moerchen
body: Is it really SourceTree or the underlying git process?
marked as requiring a CAPTCH error
Asked by Jared Christensen:

When using source tree I keep getting this error a few times a day. After I logout of Stash and log backin with a captha it starts working but I'm getting very tired of doing this mulitle times a day. Any fix would be awesome.

I should add I'm using OS X 10.8.5.

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin fatal: remote error: CAPTCHA requiredYour Stash account has been marked as requiring a CAPTCHA to be solved beforeyou may login again. This is typically caused by too many attempts to loginwith an incorrect password. The required CAPTCHA prevents your SCM client fromaccessing Stash until it is solved, even if you enter your password correctly.If you are currently logged in to Stash via a browser you may need to logoutand then log back in in order to clear the CAPTCHA.Visit Stash at http://git.dev.dice.com for more details.Completed with errors, see above
```


Answers:
author: Michael Heemskerk
body: Hi Jared,

Could it be that you've changed your credentials and that something (perhaps a Bamboo/Jenkins/.. build?) is still using your old credentials? If you need to figure out what IP address the authentication failures are being triggered from, you could have a look at the audit logs in STASH_HOME/log/audit. The atlassian-stash-audit.log file should contain entries like:

```
0:0:0:0:0:0:0:1 | AuthenticationFailureEvent | - | 1392111196025 | username | {"authentication-method":"form","error":"Invalid username or password."} | 633x670x0 | 1xzqso0
```

where the first component is the IP (in my case localhost in IPv6) of the calller.

Hope this helps!

Michael

comments: author: Jared Christensen
body: I bet your correct, I started having the problem after I had to update my password. Unfornetly I don't have access to the server that Stash is on so I dont think I can get to the logs. I will have to work with our help desk, thanks.


author: Josh Schneider
body: I am getting the same error on an old version of Stash after having logged in as myself on a coworker's computer. We've cleared the cookies on his browser and closed it, and I've done the same on mine. I can log out and log in to our Stash interface with no problem. I used an invalid password enough times to get a CAPTCHA, but still when I try to use git to pull from Stash I get this error. I had my manager set my number of failed logins before CAPTCHA to 10, and that's the only thing that's "solved" the problem, but is there a definitive way to clear some flag out of the system to keep this error from reappearing if the failed login setting is put back to the default 5? And "upgrade" is not the answer I'm looking for. Thanks.


Tags: bitbucket-server
External Merge Tool discarded files
Asked by thomthom:

I needed to resolve a merge conflict. I right clicked and choose "Launch External Merge Tool" and some windows flickered up which I wasn't able to see what they said.

I then recalled I had reinstalled my system and not set up Kdiff as I had used to.

However, now the files that had merge conflict appear to have changed as a result of my first "Launch External Merge Tool". They still appear with a merge conflict warning, but the diff view in SourceTree and Kdiff3 says there are no changes.

So it appear that whatever was the default action of External Merge Tool picked the original files over the incoming merge. Now I cannot seem to revert that.

Any idea what that External Merge Tool did by default? What that flashing dialog window said?


Answers:
author: Seth
body: The most stable fix is going to be resetting your branch to the pre-merge commit and re-running the merge. If that is going to waste too much time, you could try doing the merge again to see if the same conflicts get reported.
Resolve using 'Mine' ask me to confirm I want to use 'Their' state.
Asked by thomthom:

I found this confusing when I tried to merge a branch where I had a binary file with conflict. I wanted to keep the file in my current branch and discard the changes in the incoming branch:

![](../../upfiles/ResolveMine.png)

However, I then get a messagebox me to confirm:

![](../../upfiles/TheirState.png)

I'm confused by this, is this a typo?


Answers:
author: Dennis Field
body: A poor choice of a pronoun, I think. It is referring to the file's state as of the specified commit. You can make sure that you're resolving to the correct version of the file by looking at the ID of the commit, i.e. 8fe6d79... and comparing it with the rightmost column of SourceTree

By clicking the OK button, you'd be keeping 8fe6d79...'s version of the file.
I can't seem to get my changes into any Hg repository using SourceTree
Asked by Rolf Marsh:

I have a local Hg repo on my HD and I also have created a remote Hg repo on Bitbucket. I am using XCode5; when I do a build or save a source file, I don't see *any* of the changes *anywhere* on SourceTree (all of the files are marked as "clean").

What am I doing wrong?


Answers:
author: Seth
body: I would recommend changing your view to "show pending" (at least temporarily), which will show any files that have stagable changes.

If you don't want to change your view from "Show All", try pressing the double-up button, which will stage all files that are stagable.

If you have your view set to "Show Clean", then sourcetree will not show you anything except the files that are clean.

I, personally, use "Show Pending" 99% of the time. I don't use SourceTree to browse the files in my repository, I just use the OS file browser for that.

comments: author: Rolf Marsh
body: "Show Pending" shows nothing! I think I did something wrong, but being new to Hg, haven't a clue... any ideas what's wrong?


author: Rolf Marsh
body: I gave up and went back to Git...
Cant 'Fetch/Pull' from local GitLab server in SourceTree
Asked by Keith Savoie:

Running SourceTree on OS X.   
I can create and push branches within SourceTree up to my local GitLab server but every time I attempt to Fetch or Pull, SourceTree asks for a password. I am using SSH keys for authentication thus don't use/require password. It won't let me continue. I have tried manually entering **ssh://**git@server:....., but it spins and eventually times out with.

ssh: connect to host mygitserver.com:developers port 22: Operation timed out  
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights  
and the repository exists.

I am Fetching/Pulling to the same server and repo within Netbeans, so the chanels are properly configured.   
I am really interested in using this tool so I am hoping this can get ironed out.  
Thanks for any assistance.


Answers:
author: AafrinA
body: Hi Keith,  

Have you set the SSH identity between your local machine and the bitbucket account. Refer to this [documentation](https://confluence.atlassian.com/display/BITBUCKET/Use+the+SSH+protocol+with+Bitbucket)on creating the SSH identity and using the SSH option in bitbucket instead of https.

comments: author: Keith Savoie
body: Thats the odd thing. Keys have been set tested and I am using the same ones in my IDE (netbeans), I can push,pull,fetch,commit etc with out issue.

Within SourceTree I CAN push and commit sucessfully but CAN'T pull/fetch. When Pulling or Fetching I get this in the 'Show Full Ouptut' plus a password dialog.

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin   
2014-02-06 08:43:13.107 SourceTreeLogin\[26418:507\] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain.

Does this offer any aditional clues?
How to grant a user view permission to all Confluence spaces?
Asked by Jason Liu:

I want to know if there's any way to set a group or a user's access, who can view all the spaces in Confluence instance. Just like admin can see and manage all spaces, is there any way to set another group to grant only view access?


Answers:
author: Dave Mathijs
body: Hi [@Jason Liu](/t5/user/viewprofilepage/user-id/4567629)

Preferrably, you would create a group that contains that user. Using a group makes it scaleable because you can add other users later and maintain access via the group.

Then, grant that group **All View** permission (only this one) for all spaces in the Space Permissions. This must be done either manually or via a third-party script/bulk operation.

comments: author: Ollie Guan
body: I don't think this can be completely solved, this method can be done to initialize the unrestricted page of this group access space.

But any page restrictions will break this group's access.


Tags: confluence-server

server
Why is SourceTree becoming so slow
Asked by Andy Huber:

Hey guys

We are huge fans of all your atlassian products and we are using them a long time. But the last two updates of Sourcetree (Mac) made the app unusable. Wew allways have CPU usage of 400% when we try to do some commits in sourcTree. Is there an update comming which fixes this massive consumption of CPU power?

Thanks for your answers

Andy


Answers:
author: Constantino Cronemberger
body: I am experiencing the same problem on a Citrix virtual machine. Last time I used it I was checking the modified files one by one and every time I selected the checkbox of a file it was going crazy with the CPU and took a long time to go to the next file. I had a list of 50 files to review. I will try this again with all IDEs closed. I am using IntelliJ IDEA.


author: Peter
body: I am also experiencing the same problem on my Macs. New to SourceTree, but its obvious that the SourceTree process is running off and chewing up all available CPU. Still havent nailed down a use case that triggers it. Killing and restarting SourceTree cleans it up , but that is not a good solution, esp if in the middle of pushing a committ...


author: Andy Huber
body: Hey Kieran

We are using git and the problem occured with the last to updates of sourcetree. There was no problem before that. We have only running or IDE's (e.g. PyCharm, RubyMine, Eclipse)

Best regards

Andy


author: KieranA
body: Hey Andy,

This is usually because there's something constantly writing changes to a file in your repository, so the file watcher fires up and asks Git for a status on the repository which continuously utilises your CPU. Might be worth checking you've not got any applications open that could be doing this. Are you using Git or Mercurial? Mercurial uses Python, so certain versions or scripts could have gone rogue, too.

Cheers

comments: author: Andy Huber
body: Hey Kieran

We are using git and the problem occured with the last to updates of sourcetree. There was no problem before that. We have only running or IDE's (e.g. PyCharm, RubyMine, Eclipse)

Best regards

Andy


author: Constantino Cronemberger
body: I did a test with everything closed (besides Microsoft OCS, that is not related and the task manager), no command line and no IDE open. It took 7 seconds of CPU at 100% to move a single file from "unstaged files" to "staged files" and to show the diff of the next file. Tried it again and took 10 seconds this time.


author: Constantino Cronemberger
body: I have version 1.6.12.0
How to get one digest e mail of confluence activity
Asked by Praveen P:

We need to get a single digest mail of the daily activity in confluence

We subscribed all options but still we are not receiving the mail


Answers:
author: Linh Pham_Ricksoft_Inc
body: Hi [@Praveen P](/t5/user/viewprofilepage/user-id/5178756), perhaps you could check the notification settings of your Confluence site, under Further configuration, the 'Email' notification should be enabled.

<br />

<br />

![Screenshot 2023-07-19 at 17.51.49.png](https://community.atlassian.com/t5/image/serverpage/image-id/269767i097E3E5B4DE29A6D/image-size/large?v=v2&px=999 "Screenshot 2023-07-19 at 17.51.49.png")


Tags: cloud

confluence-cloud
How do i set up permission for a user to download multiple pages on confluence cloud
Asked by Mita Shetty:

User wants to download multiple pages ( all page content under a page tree into a single word document).

In the non-cloud version - content settings allowed for this but cant find the similar feature in the cloud version.


Answers:
author: Barbara Szczesniak
body: [@Mita Shetty](/t5/user/viewprofilepage/user-id/5256123) Once you solve the permissions issues based on the page that [@Harald Seyr](/t5/user/viewprofilepage/user-id/4441043) mentioned, refer to this page for information on how to export pages: <https://support.atlassian.com/confluence-cloud/docs/export-content-to-word-pdf-html-and-xml/>

Note that the Space Admin may need to do this if the user wants multiple pages exported to a single file.


author: Harald Seyr
body: Hi [@Mita Shetty](/t5/user/viewprofilepage/user-id/5256123) ,

welcome to the community!

Please check [What are space permissions? \| Confluence Cloud \| Atlassian Support](https://support.atlassian.com/confluence-cloud/docs/what-are-space-permissions/), maybe giving the user the "Export" permisson on space level fulfils the requirement.

Regards,

Harald


Tags: cloud

confluence-cloud
does copySpace action evade the 3000 page per tree limit?
Asked by Bryan Guffey:

The Confluence Copy Space plugin has a limitation of 3000 pages per page tree, above which the space won't copy.

does copySpace suffer from the same limitation?


Answers:
author: Brant Schroeder
body: [@Bryan Guffey](/t5/user/viewprofilepage/user-id/5010457) I would suggest following one of the server options here to copy a space <https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html>

comments: author: Brant Schroeder
body: [@Bryan Guffey](/t5/user/viewprofilepage/user-id/5010457) if this was helpful can you accept to help others?


Tags: cli

confluence-server

server
When using Page Properties Report Macro, how to display a column with the line count
Asked by Adrian Neagu:

We are using Page Properties Report Macro successfully and are happy with it.

One feature we find missing: no way to display a column with an index, showing the line number on each line.

The "Macro display options" of the "Page Properties Report" doesn't have it, that's a given.

The question is: do you know about any other macro that I could wrap around "Page Properties Report" that will cut the job? (something like TableFilter, just that I don't need any further filtering, only counts on each line, similar to what is available in the Confluence page editor when inserting a new table).

Thanks you in advance, Adrian


Answers:
author: Stiltsoft support
body: Hi [@Adrian Neagu](/t5/user/viewprofilepage/user-id/4117044) ,

As you've mentioned our [Table Filter](https://docs.stiltsoft.com/tfac/dc-server/table-filtration-42239755.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro, I assume you have it - just use it for row numbering then.

Wrap your Page Properties Report in the Table Filter macro and go to the macro settings -\> **Table view** tab -\> **Row numbering type** field. Choose what option you need.

Then, as you don't need filtration, move to the **Filters** tab and choose the "Hidden filters" option in the top right corner. You won't see the filtration panel, and filter icons in the header won't bother you as well.

comments: author: Adrian Neagu
body: Unfortunately, we don't have TableFilter on our on-premise Confluence. Otherwise I wouldn't have ask this question...

I'm only a Confluence user, not a Confluence admin, so I don't know what would take to install new plugins or if my company is willing to buy some.

Thank you for your fast answer anyway, Adrian


author: Adrian Neagu
body: For what is worth, the doc of the Page Properties Report is here:

<https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html>


Tags: confluence-cloud

filter

ms-excel

server

table
Is there an alternative to Diary that works on Cloud?
Asked by Ms_ Hiller:

The note taking app Diary (by Lively Apps) doesn't available on cloud. Is there an alternative note taking app that is?


Answers:
author: Brant Schroeder
body: [@Ms_ Hiller](/t5/user/viewprofilepage/user-id/5198940) There is nothing else that I was able to find in the marketplace with this functionality.


Tags: cloud

confluence-cloud
Delete files under "Insert Link"
Asked by Andreas Zahopoulos:

Hi -

I received below email.

+++

Hi [@myname](/t5/user/viewprofilepage/user-id/2843404),

Attachment Checker has detected an infected file absdec**.jpg**.

Please delete it. Thank you.

+++

Q: How do I delete all files that come up as options to select under "Insert Link".


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Files are not attached with "insert link", they can be found in the attachments section of the page.


Tags: cloud
How can I open a Google Sheet in sheets directly from an embed?
Asked by Ms_ Hiller:

Hi,

When I need a larger view of an embeded google sheet, is there a way to open it in Sheets directly from Confluence?


Answers:
author: Jehan Bhathena
body: Hi [@Ms_ Hiller](/t5/user/viewprofilepage/user-id/5198940) ,

Please can you add a little more information about the use case you're trying to achieve. Since I've not used Confluence a lot recently, would like to know a little more information about the "embedded Google Sheet", perhaps that might help in getting more insight about this.

comments: author: Ms_ Hiller
body: I add google sheets in an iframe. When I want to open that sheet in a separate tab, there is no way to do that from Confluence. I need to go to Sheets and locate it there.


Tags: cloud

confluence-cloud
Want to extract data from confluence pages to a json file
Asked by Ankita Patel:

I used the curl command but was unable to do it gives the information only for the main page and not for the remaining pages. Also it gives a limit of 1000 words. But I want to actually extract the data from confluence pages to store it to somewhere else.

I have used the curl command:

**curl -u abcd:xxxapi-tokenxxx -X GET "[https://your-confluence-instance/wiki/rest/api/space/content?start=0\&limit=1000](https://your-confluence-instance/wiki/rest/api/space/content?start=0&limit=1000)" \| python3 -m json.tool \> spaceat.content**


Answers:
author: Andrii Maliuta
body: Hello Ankita Patel

limit here is not WORD limit - it is limit of results (maximum 500)

When you use /rest/api/space/content you get ALL the content in your confluence in portions of max 500 - default = 50 items.

You need to know how the data in Confluence is structured and how to use REST API <https://developer.atlassian.com/cloud/confluence/rest/v1/intro/#about> so that you could get pages from one space or several spaces, from CQL query, from user etc. - then you can get any data in JSON format with the structure you need.

/rest/api/space/content - all content  
/rest/api/space/content /{pageID} - page bi ID  
/rest/api/space/content/{pageID}/child/page - children  
/rest/api/space/content/{pageID}/child/descendant - all the hierarchy under root page  
etc

comments: author: Ankita Patel
body: it keeps giving me the error:"

**Expecting value: line 1 column 1 (char 0)**

"


author: Andrii Maliuta
body: [@Ankita Patel](/t5/user/viewprofilepage/user-id/5255788) ,

Please check the response - it must be that response is not valid JSON - you are not authenticated or some other issue. You can check the HTTP response to see what is the issue.


author: Ankita Patel
body: Based on the response I received, it appears that the API request was successful, but the response body indicates that there are no results. The `"results"` field is an empty array, and the `"size"` field is 0, indicating that there is no content available for the specified Confluence page. But the page does exists.


Tags: cloud

confluence-cloud