Git Lab Instruction
Using Git for Your Lab
Step 1: Forking My Repo
This step should only be done by one member of your team.
-
Go to this URL:
https://ada.csse.rose-hulman.edu/song3/csse490-wireless-networking
You’ll have to login with your rose credentials.
- Click “fork”
- Select your name as the namespace
- Go to Settings > General > Permissions
- Change the Project Visibility to “Private” and press “Save Changes”
- Go to Settings > Members
- 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
- 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.
- In your browser, go to https://ada.csse.rose-hulman.edu and verify that you have access to your project. Copy the Repo URL.
-
Type
git clone REPO-URL
-
In the future to get changes others have made go to the created directory and type
git pull
Step 3: Commiting
- When you have made changes and want to commit, first use “git status” to see the files you’ve changed.
-
To add a new/changed file to the commit
git add FILENAME
-
When you’ve added all the files, use
git commit -m "discriptive message about the changes made in this commit"
-
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.