Using Git for Your Lab

Step 1: Forking My Repo

This step should only be done by one member of your team.

  1. Go to this URL:

    https://ada.csse.rose-hulman.edu/song3/csse490-wireless-networking

    You’ll have to login with your rose credentials.

  2. Click “fork”
  3. Select your name as the namespace
  4. Go to Settings > General > Permissions
  5. Change the Project Visibility to “Private” and press “Save Changes”
  6. Go to Settings > Members
  7. Invite the other members of your team to your project (they may need to login at https://ada.csse.rose-hulman.edu/ so they show up in the list) as Maintainers
  8. Invite the other team members and the instructor (Lixing Song) to your project as Maintainers.

Step 2: Checking out the Repo

This step should be done by everyone in your team.

  1. In your browser, go to https://ada.csse.rose-hulman.edu and verify that you have access to your project. Copy the Repo URL.
  2. Type

     git clone REPO-URL
    
  3. In the future to get changes others have made go to the created directory and type

     git pull
    

Step 3: Commiting

  1. When you have made changes and want to commit, first use “git status” to see the files you’ve changed.
  2. To add a new/changed file to the commit

     git add FILENAME
    
  3. When you’ve added all the files, use

     git commit -m "discriptive message about the changes made in this commit"
    
  4. To push to the shared repo

     git push
    

To minimize merge conflicts, always pull before you start development and push as soon as your done. Avoid editing files at the same time other members are.