Typical workflow - RobotTeaching/COMP4034 GitHub Wiki
- decide where you want your workspace, e.g. in
~/COMP4034_ws
- create the workspace and the
src/
directory within in one go: mkdir -p ~/COMP4034_ws/src
- go to the source directory:
cd ~/COMP4034_ws/src
- update system
sudo apt-get update && sudo apt-get upgrade
- install all dependencies:
rosdep install --from-paths . -i -y
- clone any repository you want:
git clone https://github.com/YOURNAME/CMP4034.git
- go to your local cloned repository (
cd ~/CMP9767M_ws/src/CMP4034
) and configure git:
-
git config credential.helper cache
(avoids retyping password again and again)
git config user.name "YOUR NAME"
-
git config user.email "YOUR EMAIL"
(replace with your ID)
- go to the top-level dir of the workspace:
cd ~/CMP4034_ws
and invoke catkin_make
- source the workspace:
source devel/setup.bash
- go to the checked out source dir:
cd ~/COMP4034_ws/src/COMP4034
- add the upstream remote
git remote add upstream https://github.com/<YOUR_REPO>.git
- update from upstream:
git pull upstream master
Create a branch from master
- make sure you are on
master
: git checkout master
- create a new feature branch:
git checkout -b NEW_FEATURE
(replace NEW_FEATURE
with a meaningful name)
- do some work and make commits...
- push the new branch to your GitHub repository:
git push -u origin NEW_FEATURE
⚠️ **GitHub.com Fallback** ⚠️