youngmon/atlassian-qna huggingface dataset:
Possible to Push a Git revision to an FTP?
Asked by eppz:

I know that this is not what Git is meant for, but it could really help me out short-term. I'd prefer solutions within SourceTree, just by adding a remote, maybe setup something on the server side.


Answers:
author: stevestreeting
body: Git has an 'archive' command which will zip up the contents of the repo (at a commit if needed), you could use that and then FTP it to your server. On the Mac version of SourceTree the Archive action is available and you can also use a Custom Action to launch a script which does all the actions - on Windows you'll have to simply write a batch script just to use 'git archive' and ftp which you launch yourself.

comments: author: eppz
body: [W](https://github.com/git-ftp/git-ftp)hoa, sounds cool, especially the custom action stuff. Is it possible to set up a custom action for Git-Ftp as well? <https://github.com/git-ftp/git-ftp>


author: stevestreeting
body: You can do anything you can call on the command line - the only caveat is that if you've had to alter your environment in the terminal for something to work (add to PATH or create new environment vars for example), full OS X apps don't see those changes automatically because their environment is different. You can get around that most easily if you've altered your .profile by making sure that you only call full shell scripts from SourceTree (those with a shebang at the top loading them through /bin/sh or /bin/bash) - because those will get all your full terminal environment.


author: eppz
body: Thanks, I hope will setup one day...   
Any hopes on implementing such feature in some future release of SourceTree?


author: eppz
body: Ca you just show me an example on how to*"making sure that you only call full shell scripts from SourceTree"* ? I've jsut opened up my *.profile*, and actually have no idea how to grant access to the shells for SourceTree.

Custom action is just set up/and hooked in, but as you expected it tells "launch path not accessible".

Thanks for your time on this.


author: eppz
body: Uh, I just put it into /usr/local/bin (I saw this path in my .profile), now it is accessible/executable within SourceTree. Sorry for this, this is my first shell script adventure.


author: eppz
body: Arrgh, I got it. It was my first terminal "project", a bit dragging, but I'm ok now. It has a nice little action that goes "Push to FTP". Thanks.


Tags: ftp

git

mac
Why do commits to a branch show up in the history for master?
Asked by charles_bates:

Hello,

Git 1.8 on Win7; latest SourceTree.

I have an original 'master' branch, and a 'work' branch. After making several commits to 'work', I browsed 'master' in SourceTree, and saw all the commits made to 'work' listed.

That seems wrong; what am I misunderstanding?

Thanks for any insight....


Answers:
author: Colin Goudie
body: Maybe I'm misunderstanding, but I don't see the commits in a branch, I do see the other branches in the Graphs view/column when I have the 'All Branches' select box option on. Selecting just 'Current branch' only shows current branch commits


Tags: git
SSH not working on SourceTree?
Asked by Tom Williamson:

I have set up SourceTree to use SSH but it does not appear to be working.   
Whenever I try to do a fetch from our remote repository, I get prompted for a username and password.   
When I enter the correct username and password, this is what I get (in the space marked XXXX, SourceTree puts my ACTUAL PASSWORD):  

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --prune origin  
Access denied  
Access denied  
Access denied  
Access denied  
FATAL ERROR: Server sent disconnect message  
type 2 (protocol error):  
"Too many authentication failures for XXXXXXXX"  
fatal: The remote end hung up unexpectedly  
Completed with errors, see above.  

So not only does the SSH auth not work, I can't even use username/password auth. Does anybody have any ideas?  


Answers:
author: Tom Williamson
body: I was able to fix the problem by changing from "Putty/Plink" SSH to "OpenSSH" for the SSH provider. No idea why this helped, but it works now.

comments: author: Noc Psn
body: I had this problem for days and spent many hours on it.... And this solved it!!!! Do this!

Thanks


author: swapnil manjrekar
body: Thanks, i also had the same problem for days and today with your guidance i was able to fix it!


author: Mathew Godia
body: Wiser words have never been spoken. Thanks. This works


author: Tobias Hopp
body: Wooooow, this answer is priceless.

**It still does the job in 2019.** Awesome and thank you!

God, this issue cost me around 3 days to find out.

This one worked for me as well. Thank you!

![SSH-Bug.png](https://community.atlassian.com/t5/image/serverpage/image-id/47167i750CE8A529523DD7/image-size/large?v=v2&px=999 "SSH-Bug.png")

comments: author: amol Chaware
body: Can you please tell me the path?


author: amol Chaware
body: I am still facing the same issue


author: Bittsitt
body: Works now, thanks!


author: Bittsitt
body: I see the same problem when trying to use putty without keys (only username and password).

comments: author: stevestreeting
body: Please try with today's release (1.2.3), a couple of refinements have been added for URLs which don't include the user name and manual login is used.


author: KieranA
body: Hi Tom,

This is very unusual behaviour. The error you're seeing which is showing your password is output from Git itself. Could you tell me more about your SSH setup? You've set up your id_rsa and id_rsa.pub keys in \~/.ssh/ and the URL for that repository has an SSH URL format? It looks like to me it's prompting for auth because it can't find any which could mean a number of things.

With further information we'll gladly be able to help.

Cheers
Sourcetree doesn't reopen project at startup
Asked by Jonathan Edwards:

I have this option checked in settings, and it used to work, but it doesn't anymore. Stopped working after I deleted my mercurial repository and created a git. Now I always get the bookmarks window showing a single repository.


Answers:
author: Jonathan Edwards
body: OK thanks, I understand. Please consider this a feature request: allow the user to override this system-wide setting. I really don't want Preview or Word reopening old docs, but I always use sourcetree on the same projects.

Thanks, Jonathan

comments: author: KieranA
body: The update for this will be released in version 1.6.3 this week.


author: Nitai
body: This is very bad. Please set it back to the way it was. I "hate" that MacOS X tries to open all my windows on restart of a an application, thus I've turned this feature off.

As a consequent SourceTree does not open my Bookmark window anymore. Meaning, every time I open SourceTree I first need to go to "View" and "Show Bookmark" and then click on one of my 30 repositories.

Why the extra clicking? Why change it to Apple's standard? That is/was anyhow one of the worst "features" in MacOS X.

comments: author: KieranA
body: Hi Nitai,

We totally understand and agree with you. A fix for this will be issued and will be released as part of 1.6.3 which should be out soon.

Thanks for giving us the feedback, we really appreciate it.

Cheers


author: vitormf
body: I share the same opinion


author: vitormf
body: Great! =)


author: Nitai
body: Hi Kieran,

This is very good news. I relay on ST every day. Thanks a lot and thank you for giving us such an awesome tool.


author: KieranA
body: Hi Jonathan,

We changed the way window re-opening works in a recent version as it now abides (correctly) to your OS preferences instead now. If you go into System Preferences and go to the General settings there's a "Close windows when quitting an application" setting. If this is turned on then your windows won't be restored on startup.

The preference in SourceTree was left behind for 10.6 users, however this will now be disabled in the next release of SourceTree for users using 10.7+ as it's no long applicable. We correctly adhere to the system preference instead now.

Hope that helps


author: Jonathan Edwards
body: Sure:

1) OS X 10.8.4

2) Yes, deleted Hg repo and created git in same directory. Don't remember what I did with the bookmarks.

I just deleted the bookmark, opened the repository, and it asked to create a bookmark, and I let it. Still doesn't auto-open.

Thx, Jonathan


author: stevestreeting
body: Can you give some more details please:

1. What version of Mac OS X you're running
2. When you deleted one repo and created another, was the path the same? If so did you re-import it to the bookmarks?
.gitignore file - I am brand new to GIT and sourcetree - please help! :)
Asked by Mike Davis:

Hi - I am BRAND NEW to both GIT and SourceTree I have decided to try and use sourcetree since its designed for beginners and I am not in a huge hurry to learn the console. My question is this: my project will require a .gitignore file because there are several folders that I need to not sync to avoid issue.

How do I create this with sourcetree? There doesnt seem to be a button to create a file and I cant figure out how to create a .ignorefile just using windows in general. All the tutorials I read say to use the console to create the file, but I dont see any git commands for source tree to create new files, only to push them, stage them, etc.

How can I create a .gitignore file, and edit its contents? I am open to a way to just do this in Windows or to use SourceTree if there is a way. Thanks\~!


Answers:
author: Colin Goudie
body: In sourcetree you should be able to right click on one of the files/folders and select ignore. This will auto create a .gitignore file for you with that particular file/folder in it.

From there, just edit the .gitignore file as you would any other file. In a text editor etc.

comments: author: Mike Davis
body: Wow that was so easy, not sure how I missed it. Thank you!


author: Francisco Tapia
body: I'm running SourceTree on my mac but I'm not able to ignore some files like the: .DS_Store which don't have any meaning for my source. on my client Version 2.0.5.2 (Mac) the ignore option is grayed out. granted I already have a .gitignore file in my local repository... could that be the issue?


author: Chiel Stuart
body: .DS_Stores might already be ignored by your global ignore list. From my experience with SourceTree the global list has always included that rule.To check your lists, go to Preferences -\> Git -\> Global Ignore List
Cannot remove "Subversion" remote
Asked by Johannes Ernst:

I converted a SVN repository into Git from the command-line. On the command-line it now says this:

$ git remote  
origin

But in SourceTree, the sidebar shows two remotes:

\* origin  
\* Subversion

If I click on "Subversion" and select "Remove Subversion..." from the popup, nothing happens.

How do I get rid of that remote?


Answers:
author: stevestreeting
body: Yeah the git-svn integration doesn't show up as a real remote in git, SourceTree makes it look like one for simplicity.

The simplest way to get rid of all the old Subversion metadata if you no longer want it is to re-clone the repository, but if you want to clean it out manually you can do this:

* delete .git/svn
* remove the 'svn-remote' entry from .git/config

comments: author: Jerome Bail
body: THX!!!!

I was about to ditch SourceTree because it was extremely slow. getting rid of that unused svn reference fix most of them.
Create/Apply git patch in SourceTree on Windows
Asked by Rostislav Redko:

Hi All,

Is it possible to create and apply git patches in SourceTree on Windows?

Thanks


Answers:
author: stevestreeting
body: Not yet I'm afraid, this is a feature that is on the Mac version but is still on our TODO list for Windows. We're gradually checking each of these items off, you can track this one at <https://jira.atlassian.com/browse/SRCTREEWIN-46>


author: Nitin Jain
body: These feature used to work on windows earlier but the SourceTree had made it unavailable in the new version.
Password mismatch on apache
Asked by emiledeholt:

Hi!

I'm having some trouble with password mismatch errors in my apache log (which also leads to me getting autobanned from my server a little now and than). I seem to get these errors when I have an open repository window in sourcetree without doing anything.

I don't get any visible errors in the sourcetree app and I can push changes to my hg remote respository, so I haven't simply filled in an incorrect user and password. What can sourcetree be doing to the remote repo when I just have a repository window open? I guess it's checking if there any new changesets on the remote repo, but shouldn't it use the same saved password as it's using for pushing and pulling for that?

Any ideas are very welcome!

Kind Regards

Emil


Answers:
author: stevestreeting
body: I'm going to assume you're using the Mac version because we haven't implemented background fetching on Windows yet.

SourceTree will check the default remote in the background periodically in order to let you know when there are commits to pull into your local repo - that's how the badges on the toolbar are updated. When it checks, if there's an authentication error it won't prompt you (because that would be confusing since it's not linked to any action you did) and will just try again later, assuming that you will have sorted out the authentication via a more explicit action like pull/push anyway.

So this suggests that the authentication for one of your repositories linked to that server is failing. Can you pull/push ok? If so, it might be that you have another bookmarked repository pointing at that same server but with maybe an incorrect user name or something.

If you want you can disable the background checks either globally in Preferences (Check default remotes every X minutes), or per-repo under the Settings toolbar button (Advanced tab).
Git Flow for SourceTree on Windows doesn't work
Asked by Karim Maassen:

SourceTree outputs the following when I try to initialize Git Flow:

> sh.exe C:\\Users\\\[user\]\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow init -d
>
> flags:FATAL unable to determine getopt version
>
> Completed with errors, see above.
>
**What is going wrong?**


Answers:
author: Karim Maassen
body: Hi Steve,

We use 0.9.4.0 for Windows.

It appears though that the issue was a faulty git flow installation prior to the SourceTree install. I removed all git flow installation data and reinstalled SourceTree (after removing all SourceTree data as well)

After reinstallation of SourceTree, all is woorking fine! :)


author: stevestreeting
body: What version of SourceTree are you using?
Issue with Embedded git
Asked by vishmita satwilkar:

When I try to open Sourcetree , it says you need git. But when I try to run it through , 'Download an embedded version of Git for SourceTree alone to use' option , it says cannot open file as archieve.


Answers:
author: Malik
body: Do you have 7zip installed? If yes, then pheraps the download is corrupted. Is it reproducable if you try again with a new SourceTree download?

comments: author: stevestreeting
body: SourceTree comes with the command-line 7z.exe inside it so it can extract the embedded Git archive. Please do try downloading again as the archive seems fine here - also please check whether you have any proxy servers (e.g. corporate network) which may be intercepting your download.
Incomplete Cloning
Asked by KevinWMatthews:

Hello!

I'm cloning a Red Suite 5 project from a remote repository into my local workspace. This works fairly well except that SourceTree doesn't copy any of the .project or .launch files that are in the root folder of the project. Is there a way to force SourceTree to copy all of the files in the folder?

It most other necessary files but seems to skip over a few extension. How can I customize what it copies?

Thanks!


Answers:
author: KevinWMatthews
body: Ah, I see. I believe that is true. I looked at my gitignore file and found that .project and .launch files are both included in this list. For good reason, too; it'd get quite annoying to track these files. I think I'll just copy these few files manually.

Thank you for your help! Your answer saved me quite a bit of time.


author: stevestreeting
body: SourceTree just uses 'git clone' (or 'hg clone') and doesn't pick what files to check out at the end, it does all of them. If some are missing it suggests that they aren't actually added to the repository you're cloning from.
Microsoft Teams Atlassian Cloud Confluence - Integration
Asked by Leon Pavesic:

Hello,

we are using Microsoft Teams and Atlassian Cloud Confluence.  

What is the best way to integrate Microsoft Teams and Confluence? Should I use official Microsoft Teams app for Atlassian (staff choice) or something else (or shoud I intergrate Confluence in Microsoft Teams)?   

![teasm_atlassian.png](https://community.atlassian.com/t5/image/serverpage/image-id/261721i04D2008C2AA1513E/image-size/large?v=v2&px=999 "teasm_atlassian.png")  

Is there a way to use Microsoft Teams in Atlassian Cloud Service Management and Work Management?  

Kindest regards


Answers:
author: Move Work Forward
body: Hi [@Leon Pavesic](/t5/user/viewprofilepage/user-id/5237491) ,

Hopefully this answer is not very later.

Truly speaking, to provide you a concrete answer you would need to explain you use case for the integration. I suggest you schedule a free Microsoft Teams + Atlassian consultation with us -\> <https://www.moveworkforward.com/schedule-a-demo>

We developed [Advanced Microsoft team Confluence Connector](https://marketplace.atlassian.com/apps/1216348/advanced-microsoft-teams-confluence-connector?hosting=cloud&tab=overview&utm_source=community_reponse&utm_medium=post_response&utm_campaign=mst_confluence), however I cannot recommend it without understanding you and your teams need and setup.

Feel free to clarify things in here and I can further elaborate on the options.

Regards,  
Leo


Tags: cloud

confluence-cloud
How to re-order pages which includes child pages in the page tree?
Asked by YunChen:

Hi Team,

I am trying to re-order my confluence pages within our organization.

there's one page that links 10 child pages cannot be re-order in the page tree.

Can you pls help with fixing?

Thank you and best regards,

Yun


Answers:
author: Frederik Vantroys
body: A few options you have:

* Use Page Properties and Page Properties Report macros:

Create a page property on each child page, such as "Order" or "Sort Order," to specify a custom ordering.  
Add a Page Properties macro on the parent page, which will display a table of child pages based on the specified property.  
Use the Page Properties Report macro on the parent page to display the child pages in the desired order.

* Utilize a third-party plugin:

Explore available Confluence plugins that provide enhanced page tree management or reordering capabilities. The Atlassian Marketplace offers various plugins that extend Confluence's functionality, including page tree customization options.  
Manually adjust page titles:

* Modify the titles of the child pages to include numbering or prefixes that reflect the desired order. For example, you can prefix the titles with numbers (e.g., "1. Child Page A," "2. Child Page B") to achieve a specific order.


Tags: cloud

confluence-cloud
SourceTree - Browse Hosted Repositories on Windows version
Asked by Mike Berlin:

Hello,

I've been using SourceTree on the Mac for awhile and I love it. However, I'm starting to work on some MVC 4 ASP.NET sites that we're using BitBucket and the Windows version of SourceTree. In the Mac version I am able to browse my BitBucket account under the Hosted Projects section of the app. However, I am not able to see this functionality in the Windows version. Is there in another location within the Windows version or is this not included?

If it's not included is there a plan to add this feature? It is very helpful (and time saving) to be able to clone a repo from my BitBucket and/or GitHub account directly through SourceTree. This would be a great time saver for me.

Thanks,  
Mike


Answers:
author: stevestreeting
body: The Windows version is still catching up with the Mac, but Hosted Repositories support is definitely on the TODO list: <https://jira.atlassian.com/browse/SRCTREEWIN-70>

comments: author: Mike Berlin
body: Understood, thanks for the info!


author: Sam Craig
body: When trying to use this feature in the latest version 1.3.1 it seems to be stuck at Checking Password on the add/edit screen for a bitbucket account. It never fails or succeeds, just sits there spinning.

Clicking OK (on add/edit dialogue) and refreshing the Hosted Repositories just causes the Hosted Repositories dialogue to sit there spinning.

Is there something I'm doing wrong? The password is definately correct as i successfully used it to log into bitbucket via the web


author: Derek Rosenzweig
body: Any timeframe on this feature? I too am just starting to use SourceTree on Windows, and this functionality saves a lot of time for me when I'm on mac.

comments: author: stevestreeting
body: This and custom actions are the next 2 things on the list, so we hope to get this out wihin the next few weeks.


Tags: bitbucket-cloud

cloud

github

windows
Do I need global admin permission in order to create templates to be used within my organisation?
Asked by Christian Lakin Dick:

I am hoping to use confluence to streamline project information documentation and this would begin with the creation of templates that can be used by the team in order to produce easily edited and navigated uniform documentation. I would then create a space and pages housing the new templates to give an easy access base for this information, also becoming a home for completed documents. If there is a more efficient way to go about this or a way that already exists I am all ears!

I apologise if this is already possible but before I request greater admin powers is this possible with space admin powers?

I appreciate any help on this.

Thanks


Answers:
author: Summer Hogan
body: Hi [@Christian Lakin Dick](/t5/user/viewprofilepage/user-id/5237472) - welcome to the community!

Yes, you do need space administration rights to create or edit templates in Confluence Cloud. See the article below for more info: <https://support.atlassian.com/confluence-cloud/docs/create-a-template/>

comments: author: Christian Lakin Dick
body: Thank you, I am now well on my way to creating a suite of templates for my organisation.


Tags: cloud

confluence-cloud