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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.