Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use SourceTree to convert a local folder to a git repo Edited

Hi - here is what I want to do. I have a local folder with some files in it (not currently a git repo). I want to use SourceTree to use this folder as the site of a new repo, i.e. do the equivalent of 'git init' and then add the folder as a new remote repo on my BitBucket account. When I tried to do this, by doing "Clone/New... > Create" ,SourceTree complained that the local folder already had files in it.

???

My expectation was that SourceTree would have this kind of job as one of the basic tasks it would be capable of, to make creating new repos easy, without using the command line or going to the Bitbucket web interface. Maybe I am wrong.

What, if anything, am I doing wrong in this situation? Or does SourceTree not after all have this functionality?

 

Edit: OK so I found this page that covers what I want to do: https://confluence.atlassian.com/bitbucket/add-unversioned-code-to-a-repository-877177133.html - it would seem that you have to do the git init stuff from the command line; SourceTree can't do this for you. I don't mind the command line at all, I just thought that SourceTree would save me the trouble.

1 answer

1 accepted

1 vote
Answer accepted
Ana Retamal Atlassian Team Dec 17, 2018

Hi Francis! 

I see you found your answer already. Sourcetree won't be able to initialize git repositories, you'll need to do that on the terminal and then Sourcetree will be able to work with them.

Have a good day!

Ana

Thanks Ana.

Is this a feature that SourceTree will be able to have in future, or is there some conceptual reason why it won't ever be able to do the init thing? It would be a helpful feature, I feel.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,392 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you