Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 943 Bytes

CONTRIBUTING.md

File metadata and controls

32 lines (29 loc) · 943 Bytes

Example of creating an new lab

export LAB_NUMBER=xx
export LAB_KEYWORD=yyyyyyy
export LAB_NAME=lab-${LAB_NUMBER}-${LAB_KEYWORD}
git clone https://github.com/bmstu-iu8-cpp-sem-3/lab-xx-template ${LAB_NAME}
cd ${LAB_NAME}
git remote rename origin template
git remote add origin https://github.com/bmstu-iu8-cpp-sem-3/${LAB_NAME}.git
# 1. remove the unnecessary directories
# 2. add the necessary files
git add .
git commit -m"prepared ${LAB_NAME}"
git push origin master

Example of updating an existing lab

export LAB_NUMBER=xx
export LAB_KEYWORD=yyyyyyy
export LAB_NAME=lab-${LAB_NUMBER}-${LAB_KEYWORD}
git clone https://github.com/bmstu-iu8-cpp-sem-3/${LAB_NAME}
cd ${LAB_NAME}
git remote rename origin template
git remote add template https://github.com/bmstu-iu8-cpp-sem-3/lab-xx-template.git
git fetch template master
git branch -f template template/master
git rebase template
git push -f origin master