Changes

114 bytes added ,  21:16, 3 February 2017
Line 46: Line 46:     
== Pushing Changes to Repository ==
 
== Pushing Changes to Repository ==
Now that the repository is configured, you can push your code to it. If you haven't used Git before (or aren't sure exactly how to use it), the basic idea is that you make changes to your files, commit those changes to a "commit", then push that "commit" to the remote location (in our case, BitBucket). Git does much more than this, and you should learn how it really works, but this is all we need for the project. So, first we need to make a new commit. Right click on the project in package explorer, hover over Team, and click Commit. A new window will appear. Drag and drop the files that you want to save to the remote repository from the "Unstaged Changes" window to the "Staged Changes" window (its a good idea to only store the files that are necessary, so you'll probably only want to stick your Java files in the repository and ignore the Eclipse project stuff). Fill in a commit message (it is mandatory) and then click Commit and Push. You may need to type your password for BitBucket a few times if you don't have it saved in Eclipse. If all goes well, you'll receive a message saying that your commit was pushed.
+
Now that the repository is configured, you can push your code to it. If you haven't used Git before (or aren't sure exactly how to use it), the basic idea is that you make changes to your files, commit those changes to a "commit", then push that "commit" to the remote location (in our case, BitBucket). Git does much more than this, and you should learn how it really works, but this is all we need for the project. So, first we need to make a new commit.
 +
 
 +
1) Right click on the project in package explorer, hover over Team, and click Commit. A new window will appear.
 +
 
 +
2) Drag and drop the files that you want to save to the remote repository from the "Unstaged Changes" window to the "Staged Changes" window (its a good idea to only store the files that are necessary, so you'll probably only want to stick your Java files in the repository and ignore the Eclipse project stuff).
 +
 
 +
3) Fill in a commit message (it is mandatory) and then click Commit and Push. You may need to type your password for BitBucket a few times if you don't have it saved in Eclipse.
 +
 
 +
If all goes well, you'll receive a message saying that your commit was pushed. You can verify this by going to [http://bitbucket.org bitbucket.org] and looking at your repository.
editor
12

edits