Changes

14 bytes added ,  21:12, 3 February 2017
no edit summary
Line 10: Line 10:  
== Getting Started: Creating a Remote Repository and Linking With Your Project ==
 
== Getting Started: Creating a Remote Repository and Linking With Your Project ==
 
You should first make a remote repository on a site that allows you to keep private repositories (after all, you don't want to get flagged for academic dishonesty by accidentally putting your project implementation in the public domain before the deadline). Here, we'll use BitBucket.
 
You should first make a remote repository on a site that allows you to keep private repositories (after all, you don't want to get flagged for academic dishonesty by accidentally putting your project implementation in the public domain before the deadline). Here, we'll use BitBucket.
 +
 
1) Go to [http://bitbucket.org bitbucket.org] and create an account
 
1) Go to [http://bitbucket.org bitbucket.org] and create an account
 +
 
2) Make a new repository, make sure the "private" checkbox is checked. Don't add a README, just leave the repository empty.
 
2) Make a new repository, make sure the "private" checkbox is checked. Don't add a README, just leave the repository empty.
 +
 
3) Copy the the URL of the repository (the https one)
 
3) Copy the the URL of the repository (the https one)
    
Now in Eclipse,
 
Now in Eclipse,
 +
 
1) Go to Preferences -> Team -> Git -> Configuration
 
1) Go to Preferences -> Team -> Git -> Configuration
 +
 
2) Click "Add entry" and make the key "user.name" and the value your name, then hit "OK"
 
2) Click "Add entry" and make the key "user.name" and the value your name, then hit "OK"
 +
 
3) Click "Add entry" again, and make the key "user.email" and the value your email.
 
3) Click "Add entry" again, and make the key "user.email" and the value your email.
 +
 
4) Click "OK" to exit Preferences
 
4) Click "OK" to exit Preferences
 +
 
5) Now in the menu bar, click Navigate -> Show In -> Git Repositories
 
5) Now in the menu bar, click Navigate -> Show In -> Git Repositories
 +
 
6) In the Git Repositories window, click "Clone Repository" (Alternatively, right click in the Git Repositories window and click "Paste Repository Path or URI")
 
6) In the Git Repositories window, click "Clone Repository" (Alternatively, right click in the Git Repositories window and click "Paste Repository Path or URI")
 +
 
7) Paste in your BitBucket URL if it is not already filled in, and leave the defaults that appear, then hit Next
 
7) Paste in your BitBucket URL if it is not already filled in, and leave the defaults that appear, then hit Next
 +
 
8) Leave the default option of where to store the git repository locally
 
8) Leave the default option of where to store the git repository locally
 +
 
9) Click finish, and you'll see the repository appear in the Git Repositories window (you will have to type your password for BitBucket to finish cloning)
 
9) Click finish, and you'll see the repository appear in the Git Repositories window (you will have to type your password for BitBucket to finish cloning)
 +
 
10) Now, right click on your project in the Package Explorer, hover over Team, and click "share project"
 
10) Now, right click on your project in the Package Explorer, hover over Team, and click "share project"
 +
 
11) Select your git repository from the dropdown menu and leave the default options for the rest
 
11) Select your git repository from the dropdown menu and leave the default options for the rest
  
editor
12

edits