youngmon/atlassian-qna huggingface dataset:
Newcomer to Git: how can I learn to use Sourcetree
Asked by Tim Dawson:

I'm a free-lance web developer (working alone) and I've got tired of working with different versions of my files with slightly different names. I always get confused in the end. So I'm having a real try to adopt a version control system. I understand the broad principles of Git, but I thought it would be easier to use the Sourcetree GUI.

But I can't find a manual. I can get specific questions answered, but I was hoping to find some documentation that would take me through the process from the beginning, with particular reference to converting existing projects (with no formal version control) to Git.

Can you suggest a source, please ? I'd even buy a book if it exists.


Answers:
author: Tim Dawson
body: I'm adding this in order to close the Question.


author: gustavo_refosco
body: Hi Tim,

<br />

Based on your expectations and suggestion of having an accessible manual for SourceTree I've created a request for documentation change at our issue tracker: [](https://jira.atlassian.com/browse/SRCTREE-2506)<https://jira.atlassian.com/browse/SRCTREE-2506>

Please feel free to vote on it, as well as adding any further comments you may find relevant.


author: gustavo_refosco
body: Hi Tim,

I'm sorry there is not a specific manual for it. However, digging a little bit, I could find some documents that may be useful for you.

As you said you are starting adopting version control systems, though you said you already know the principles of Git, you may find interesting the Git Tutorial site: [](https://www.atlassian.com/git)<https://www.atlassian.com/git>

It was mentioned in [this topic](/questions/149750/git-tutorial-using-sourcetree) in which I also found that, if you are using SourceTree for Mac you can find some directions under **Help \> SourceTree Help**.

Some basic information are also contained in the **Getting Started** section of the FAQ: [](http://www.sourcetreeapp.com/faq/)<http://www.sourcetreeapp.com/faq/>

Finishing, I also found a video tutorial about how to use Git and SourceTree for begineers: [](https://www.youtube.com/watch?v=1lBdlh3AGSc)<https://www.youtube.com/watch?v=1lBdlh3AGSc>

comments: author: Tim Dawson
body: Thank you. I hadn't seen the video before, and since that deals specifically with SourceTree (rather than generally with Git) I have found it useful, though it still leaves some things un-covered.

For example I'm unclear about the difference (if any) between 'Fetch' and 'Pull'. It may not matter just yet, as I shall not be working with a remote repository immediately.


author: Seth
body: Your repository contains both local branches and copies of remote branches. "Fetch" updates the copies of remote branches. "Pull" performs a "fetch", then merges any changes from the remote version of the branch you currently have checked out into your local one.


author: Tim Dawson
body: Thank you. I understand now.

It's a pity there's no SourceTree manual. I suppose it is assumed that anyone adopting SourceTree has already got a detailed knowledge of Git. In my case this isn't true. I have only a broad understanding of the principles.
diff not shown for "Follow renamed files" in "Log Selected..." window
Asked by Niklas Berglind:

Step by step hoe to reproduce:

1) Do "Log Selected..." on a file

2) enable "Follow renamed files"

3) select two files showing up 2) is done

4) right part of the window show no diff/changes


Answers:
author: Niklas Berglind
body: [](https://jira.atlassian.com/browse/SRCTREE-2535)<https://jira.atlassian.com/browse/SRCTREE-2535>


author: Seth
body: I think this merits a bug report on [jira.atlassian.com](http://jira.atlassian.com).
How to use Cherry Pick in SourceTree?
Asked by cyberpunkstudio:

Cherry Picking in Git is really useful. But how do you use Cherry Pick in SourceTree to select the specific commit to merge into another branch?  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-use-Cherry-Pick-in-SourceTree/qaq-p/369254?attachment-id=3233){#link_116b4e4f92186c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10988/1/image2016-11-14%2017%3A15%3A1.png){#display_116b4e4f92186c_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-use-Cherry-Pick-in-SourceTree/qaq-p/369254?attachment-id=3234){#link_116b4e4f92186c_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10988/2/image2016-11-14%2017%3A11%3A2.png){#display_116b4e4f92186c_2}


Answers:
author: Jamus Jegier
body: First checkout the destination branch, then right click on the commit you want to cherry pick and select Cherry Pick.

comments: author: Seth
body: You can right-click on the commit you want in the log/history view.


author: papertape
body: Ensure 'All Branches' is selected from the dropdown list  

image2016-11-14 17:15:1.png

You are then able to select the commit (highlighted) from a given source branch. This had me baffled for a while - doh!
SourceTree can not create "Git Flow" Workflow
Asked by Sebastian Hens:

Hi folks,

I have a problem with SourceTree. I have installed the latest Version and clone my private repository from bitbucket. This works fine but if I want to create the "Git Flow" Workflow I get following error:

```
git init -d /Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 41: uname: command not found/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 41: egrep: command not found/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 50: sed: command not found/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 50: dirname: command not found/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 73: /gitflow-common: No such file or directoryCompleted with errors, see above
```

All of the listed commands are usable over terminal as they should. But how can I fix this issue =/?

Regards,

Sebastian


Answers:
author: Sebastian Hens
body: I finally found the issue.

And indeed it was $PATH, but it is not so obvious: I had stuff in my launchd.conf which caused the error.... removed that stuff and restarted the system :) thanks for your help!

comments: author: Seth
body: You should mark this as a correct answer also.


author: Seth
body: Have you manually modified any environment variables, or used Homebrew? If so, the problem is not with SourceTree. You might try [this solution](http://stackoverflow.com/questions/19416117/multiple-commands-not-found-in-terminal-after-homebrew-install-attempt-reset) from stack overflow, but be cautious modifying environment variables like $PATH - you can mess other software up.

comments: author: Sebastian Hens
body: Thanks for your response Seth, but my $PATH looks pretty normal:

```
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
```

No Homebrew installed
How to create a Orphan Branch in SourceTree?
Asked by cyberpunkstudio:

In SourceTree you can create branches with no problem, but how do you create a Orphan branch?


Answers:
author: Jamus Jegier
body: I was researching this the other day, and couldn't find an answer to it either. Best bet is to do it from the command line. In sourcetree, click on terminal, then run git checkout --orphan NEWBRANCH.

comments: author: zhezhang
body: Additional info: after running

```
git checkout --orphan &lt;NEWBRANCH&gt;
```

You can run

```
git rm -rf .
```

to clear the index and the working tree right after creating the orphan branch.


author: Seth
body: I do not believe SourceTree provides a way to do this in the UI. I imagine usage of "orphan" branches is so rare that if they DID support it, they would have more people using it on accident and panicking ("WHERE DID MY FILES GO?!?!?!?!1111") than they would have people using it on purpose.

Additionally, the required command is so simple, it doesn't really add a huge burden to those of you who have a legitimate use.

comments: author: Bharath Lohray
body: such people should not use git.
Autocrlf not working on 1.9.4 (Mac OSX Maverics)
Asked by Rob Newman:

having problems commiting files that have been edited by a Windows user. So I opened up the config file in the SourceTree app, and added the line for autocrlf = input, yet it doesn't stop the fatal error message. I also tried the command line $ git config --global core.autocrlf input

which saves to my local user config, but neither keeps the message from appearing. I also tried searching for any other .gitconfig files on my machine, and the only one that I can find is the local one.. so where does the SoureTree .gitconfig file reside? and why does it not solve the fatal message?


Answers:
author: Rob Newman
body: btw, setting autocrlf = false in the SoureTree config file works; or at least allows me to commit the files without fatal error message, but then our Windows users will have same problem I am guessing..


Tags: mac
Adding downloaded repository to SourceTree
Asked by Alpana Ladwani:

Hi,

I have a large repository on BitBucket and I wish to clone it in SourceTree but it takes endless time to clone. Moreover, my internet connection is not stable so each time the connection is interrupted, cloning starts all over again. So, I have downloaded a repository from BitBucket as zip and its around 1GB. How can I add this as repository to SourceTree and then push the updates back to BitBucket?

Thank you for your support in advance.

Regards  
Alpana


Answers:
author: Alpana Ladwani
body: Hi Celso,

Thank you for your reply. How do I check if its a clone of repositiory contents or a repository folder? I simply downloaded it from the Downloads page in BitBucket by clicking on the "Download Repository" link.

Also, do I need to "Create New Repository" in SourceTree by providing the path to the repository I downloaded before executing those commands?

Regards

Alpana


author: CelsoA
body: Hi there,

Is the file just a clone of repository contents or is it the repository folder from git itself?

If it is a clone of the contents, I would recommend you to unzip the file and run a git init on it, setting the origin to bitbucket repository.

cd existing-project

git remote set-url origin bitbucket_repo_url

git push origin master

Please five it a try and let me know how it goes.

Regards,

Celso Yoshioka

comments: author: Alpana Ladwani
body: Hi Celso,

Thank you for your reply. How do I check if its a clone of repositiory contents or a repository folder? I simply downloaded it from the Downloads page in BitBucket by clicking on the "Download Repository" link.

Also, do I need to "Create New Repository" in SourceTree by providing the path to the repository I downloaded before executing those commands?

Regards

Alpana
Source Tree Error Please Help
Asked by Gabriel Smith:

fatal: Unable to create 'C:/Users/Jon/Documents/DoomCarts/.git/index.lock': File exists.

If no other git process is currently running, this probably means a

git process crashed in this repository earlier. Make sure no other git

process is running and remove the file manually to continue.

How can we commit?


Answers:
author: HenriqueA
body: Hi Dfg,  

If you're not running other GIT process, just delete the **C:/Users/Jon/Documents/DoomCarts/.git/index.lock** file and try again.  

Kind Regards,  
Henrique Lechner

comments: author: Seth
body: Correct. Which is what the error message is telling you to do.


author: Seth
body: If you can't find the .git folder, you may need to change your Windows File Explorer options to [show hidden folders](http://windows.microsoft.com/en-us/windows/show-hidden-files), or type the path directly into your address bar.


author: Andr? Neves
body: This is a known bug: <https://jira.atlassian.com/browse/SRCTREEWIN-5639>

You should open that bug and **vote** for it, to give it more priority.

As a work-around, use the solution proposed by Henrique Lechner:
> If you're not running other GIT process, just delete the **C:/Users/Jon/Documents/DoomCarts/.git/index.lock** file and try again.


author: johankronberg
body: I get this a lot when switching branch. Sometimes it's enough to just wait a couple of seconds and then try again. Other times I need to Exit SourceTree and start it up again before being able to switch branch.


author: Alex Sedighi
body: This happened to me and while sourcetree kept telling me the lock file existed, there was no such a file there for me to remove. So I just checked out another branch and then returned to the original branch and noticed this change fixed the issue.


Tags: windows
Table of contents hides Headers after using the "Include Excerpt" macro
Asked by Leila Paul:

Hi,

I am having problems with the table of contents AFTER adding the **new page with the excerpt include macro.** The content from the other page won't appear. The headers will be hidden from the table of contents. How should I proceed?

Thank you!


Answers:
author: Dan Breyen
body: Hi [@Leila Paul](/t5/user/viewprofilepage/user-id/5267781) welcome to the community. I found a similar issue on Atlassian's jira site (jira.atlassian.com) [CONFCLOUD-72469](https://jira.atlassian.com/browse/CONFCLOUD-72469) There's also a link to the TofC documentation in there too.

I can't tell if this is exactly your issue or not from your description. If it is, feel free to vote for and watch it.

If it's not your issue, you may want to get another opion from support. You can open a ticket at support.atlassian.com. Click on the 'Contact' link in the upper right of that page.

Hope that helps.

comments: author: Leila Paul
body: Hello [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375)

This is indeed my issue, but Atlassian offers no solution there.

So I will go ahead and open a ticket.

Thank you so, so much.


Tags: cloud

confluence-cloud
Receiving 401 Unauthorized Error while trying to access iminfosec through Postman tool (API)
Asked by Ahmed, Raneez:

I am able to access the Iminfosec page from the website and able to make chnages and add pages to the Confluence. Hence this is not an access issue. In the case API call via PostMan tool, I am not able to access the confluence page in iminfosec. I am getting 401 Unauthorized Error.  
Tried with generating an API token for the Confluence page from the Iminfosec, I am receiving that , the current user is not authorized to perform any actions.


Answers:
author: Kian Stack Mumo Systems
body: 401 normally indicates that the authorization is not valid. A 403 would be that you successfully authenticated but don't have the permissions.

What format are you supplying for the authorization?

Thanks,

Kian


Tags: cloud

confluence-cloud
Turning confluence forms into jiras?
Asked by Siya Ramtri:

I am trying to have the ability to turn confluence forms into jira issues automatically once a user fills them out.

I have tried jira issue collector however it does not do this exactly.. I am trying to download confiforms \& script runner (script runner for application links) however it says my system administrator will not allow me to download apps from the atlassian store.

Is confiforms or scriptrunner better? \& is there another way?


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Siya Ramtri](/t5/user/viewprofilepage/user-id/5267643) and welcome to this community

[ConfiForms](https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows-for-confluence?hosting=cloud&tab=overview) plugin, which we develop and support, has a lot of flexibility on designing your forms, as well as how this gets integrated with Jira (creating multiple issues at once, having custom notifications if necessary)

Give it a try. Definitely it has a lot more to offer than a standard issue collector

Alex

comments: author: Siya Ramtri
body: my administrator will not allow me download applications / plug ins from atlassian.. is there another way?

I have tried JIRA issue collector however it is not suitable as I need forms on confluence to turn into jira issues automatically once submitted


Tags: confiforms

unknown-hosting-type
ConfiForms: Detect multiple consecutive spaces in field name?
Asked by Rachel Andrews:

Hello,

I would like to prevent users of my ConfiForm from entering in multiple consecutive spaces in my field name (e.g. "hello test"). Is there a condition I can set for this field definition that will detect something like this and trigger an error for the user to fix?


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Rachel Andrews](/t5/user/viewprofilepage/user-id/5264671)

Not sure why you need that, but here is how you can do that

Demo:

<http://recordit.co/694a4AbWSm>

Complete configuration:

```
<ac:structured-macro ac:macro-id="488ffc5c-fd4f-4779-9868-89e6162c066a" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">form</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="a8a64c24-2787-40d5-8a50-6f8fdb3de6d6" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="a289f7d3-55c4-4483-b0bb-db0d84a58977" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">field</ac:parameter>
<ac:parameter ac:name="fieldLabel">field</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="7176d79a-dcee-4279-9874-75034e8567a1" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">field:* *</ac:parameter>
<ac:parameter ac:name="fieldName">consecutive spaces in field name, not good</ac:parameter>
<ac:parameter ac:name="action">Validation rule</ac:parameter>
<ac:parameter ac:name="actionFieldName">field</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
```

Alex

comments: author: Rachel Andrews
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) thank you so much! That seemed to do the trick


Tags: confiforms

confluence-server

server
Jira Issues Macro error rendering JQL results
Asked by Alain BEAULIEU:

Hi,

We are on Jira and Confluence Cloud.

I have a page containing several Jira Issues Macros configured as tables listing a few tickets each (not more than 10-12). The macros have direct JQL (not saved filters), such as

"epic link" = PROJX-2402

The columns selected are:

Issue Type, Priority, Key, Summary, Status, Assignee, Team, Epic Link

Team is a custom field. All the others are native.

I am space admin and ALSO Confluence Administrator.

All the macros render perfectly for me, but they do not for everyone else. Every macro returns "Data cannot be retrieved due to an unexpected error".

If I store the JQL in a saved filter, the macros render fine for everyone. But I prefer inline JQL directly within the macro. This data is specific and temporary - used for a weekly meeting and changes every week.

I have tried removing the custom field and even limiting the number of fields (columns). That changes nothing.

If I copy one of the macros into a separate test page and publish that alone, it works for everyone.

Does anyone have an idea of what might be the issue here please?

Thanks.

EDIT #1: Removing the Epic Link column fixes the issue for everyone. But that doesn't explain why I can see all listings just fine and not others. I will keep looking for a solution because we need the Epic Link!

EDIT #2: I think I found the source of the issue. It seems related to the profile language. It fails if the profile langague of the user is anything other than English US. I created a ticket: <https://support.atlassian.com/requests/JST-894654/>


Answers:
author: Alain BEAULIEU
body: There is a bug where if your profile language is not EN-US and you're using the Epic Link field/column, the rendering fails.

See <https://support.atlassian.com/requests/JST-894654/>.


author: Sanjen Bariki
body: Hi [@Alain BEAULIEU](/t5/user/viewprofilepage/user-id/5188952) ,

Welcome to atlassian community!

Sorry to say, Could you please share the Screen shoot of the error..?

Once again can you please confirm, In that project, Have you configured the issue security scheme..?

Regards,

Sanjen Bariki

comments: author: Alain BEAULIEU
body: Please see my Edit #2. It's a bug in Confluence and it was reported to Atlassian.


author: Matthias Gaiser _K15t_
body: [@Alain BEAULIEU](/t5/user/viewprofilepage/user-id/5188952) for a better visibility of the answer, you can also create a new answer yourself and accept it.


Tags: cloud

confluence-cloud
Button shrink page doesn't work
Asked by Konstantin Zhabko:

H

Thello. I created an article and in the view mode I see the page in the center of the screen, but in edit mode, I see the fitted page by the width of screed. So I tried to click on the button "make page fixed width" but nothing happened.

I tried to check this issue in another browser. No effect.

![Screenshot from 2023-07-13 16-26-18.png](https://community.atlassian.com/t5/image/serverpage/image-id/268630i4F78FAF525E6B81E/image-size/large?v=v2&px=999 "Screenshot from 2023-07-13 16-26-18.png")

Any suggestions?


Answers:
author: Konstantin Zhabko
body: It is for specific pages. I will investigate the reason and tell more information...


author: Dan Breyen
body: Hi [@Konstantin Zhabko](/t5/user/viewprofilepage/user-id/3385940) I'm not able to reproduce this issue in my cloud instance. I'm wondering if it's isolated to your user? You mentioned you tried it in another browser, are they on the latest versions?

Another thing to try would be to reboot the PC and see if it still happens there.

I did find this issue reported on Atlassian's Jira site. It might be worth voting for and watching it. [CONFCLOUD-68780](https://jira.atlassian.com/browse/CONFCLOUD-68780) but I don't think that's your issue as you're saying it doesn't work at all.

If it's still a problem, I would suggest opening a support ticket with Atlassian (support.atlassian.com and click 'contact' link in upper right) and get their take on the issue.

Hope that helps.

comments: author: Konstantin Zhabko
body: I inspected the page and I saw error 404:

Headers:

\`\`\`  
Request URL: <https://namsnet.atlassian.net/wiki/rest/api/content/2976251905/property/content-appearance-draft>  
Request Method: PUT  
Status Code: 404  
Remote Address: 185.166.143.36:443  
Referrer Policy: origin\`\`\`  
In this case, an error occurs only in draft mode. When I publish the page it appears good.  
Can you investigate it?


Tags: cloud

confluence-cloud