Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 2.46 KB

File metadata and controls

42 lines (34 loc) · 2.46 KB

Collaboration (SmartGit version)

  1. Create a fork of the desired central repository on GitHub (easy as clicking the fork button in the top right corner of the webpage). GitHub will create a copy of the repository in your namespace. This is your fork, where you will "push" your changes and submit pull requests to the central repository.

  2. Clone this repository to make a local copy of the files and commits on your computer.
    To do this, open SmartGit and in the File menu, select Clone. You will need to enter the URL of your fork, and the location where you'd like the files to go. You don't need to check or un-check any of the other boxes. This will also create a "project" which is how you manage things in SmartGit.

  3. Now you should have a folder (wherever you saved the clone) on your computer that contains all the files from the remote. Open this, fiddle around with the code, do what you like. Once you've made a series of changes you want to "save", go back to SmartGit. Click on the "review" button in the top right corner. This will bring up a window with all your changed or added documents. Select your changes and click the stage button. Once everything you want to commit is staged, click the commit button and enter a descriptive commit message.

  4. Once you have all the changes you want to submit to the master repository, go back to the main window of smartgit. Your local changes will be shown in the "outgoing" pane. Click on the "push" button on the left. You'll have to log in, but your changes will get sent online to your fork of the central repository.

  5. Switch to your internet browser and pull up your fork of the repository. Submit a pull request from your fork (look for a green button somewhere on the repository page). Add any desired comments and finally click the green "Submit pull request" button.

  6. To update your local copy from the central repository will require two steps in SmartGit First, you must add the central repository as a remote to your project, by going to the "remote" menu and choosing "add". Put in the url of the central repository, plus a name for your own use. The remote will appear in the left pane under "branches."
    Right-click on the remote's name and select pull in order to bring changes from the online master copy into your local copy.

###Note on workflow

It is helpful to pull from the central repository on a regular basis in order to keep up with changes.