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

I want to use Sourcetree+Bitbucket for version control in an existing unity project. How?

I have a unity project I have been working on for the last 6 months.

I need to use sourcetree+bitbucket for version control. How do I do this? [macosx]

 

What I have tried : 

 - I have watched this. This set me up a remote Repository that is linked to a copy of my project. Project changes I make do not reflect in Sourcetree because it is a copy. This also lead me to copy ALL files, including unwanted files. I think this is because I saved my gitignore file as gitignore.txt. (How do you make a .gitignore?)

What I want : 

- I want my current project code to be linked up with sourcetree/bitbucket.

- I want a .ignorefile to be setup correctly 

Example: I want to edit a line of code in one of my scripts, go over to Sourcetree and see that I did so.

What is an acceptable answer : 

1. Instruct how to do the above without the use of the command line. 

1 answer

Hi @chrixxxtopher

welcome to the community!

If you have an existing project then follow the below steps to user Bitbucket and Sourcetree.

1. Create Project and then Create an empty repository in Bitbucket.

2. Clone the empty repository through Sourcetree.

3. Whenever you will changes to file of the local working directory then the Sourcetree will automatically track the changes.

4. Using Sourcetree you can do the commit and push the changes to the remote repository (Bitbucket).

5. you can ignore the files in two ways.

a. Globally

 git config --global core.excludesfile

git confir --global core.excludesfile '/etc/gitignore'

Open the gitignore file and add the file extension that you need to in=gnore.

Ex : *.bak or *.out files need to ignore

b. Locally

 Create a .gitignore file and then add the file extension live we did in global.

Ex : *.dll - To ignore the File
Ex : tmp/* - To ignore a directory and the files in it

Thank you for the welcome!

Please remember this is all new to me and you shouldn't assume I know anything.

 

Your instructions were not clear.

1. I still cannot "edit a line of code in one of my scripts, go over to Sourcetree and see that I did so".

2. I still do not know how to "make a .gitignore"...nor do I know how to set it up correctly for a Unity project.

 

What is an acceptable answer : 

Instruct how to do the above without the use of the command line. 

Assume I am 12 years old, then explain this to me again.

Thank you for your patience.

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,907 views 0 12
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