git clone https://github.com/sengfung27/Python-Online-Ordering-System.git
pip install -r venv/bin/requirements.txt
source venv/bin/activate
export FLASK_APP=microblog.py
flask run
git fetch origin
git reset --hard origin/branch_name
git checkout -b name_branch
git push origin name_branch
git checkout master
git branch -d name_branch_local
git push origin --delete name_branch_remote
On your local branch
git branch --set-upstream-to origin/your_branch
On your master branch
git branch --set-upstream-to origin/master
Setup:
-
In the terminal/Shell, go to the directory where you want to place the team project, then use the following command to clone our project:
git clone https://github.com/sengfung27/Python-Online-Ordering-System.git -
change directory to
microblogthen use the following command to see local branch:git branch -
you should only see a master branch. Now, run following command to see all remote branch:
git branch -r -
then fetch your own branch:
git fetch origin your_branch:your_branch -
use
git branchto see all local branch, you should see your branch and the master branch. -
go to your branch by doing
git checkout your_branch, set upstream branch:git branch --set-upstream-to origin/your_branch
How to work?
-
Your branch belongs to your self, here is where you work. However, do not work on master branch. To switch to your branch. Use
git checkout your_branchUsegit branchto see where you are. -
When you finish a model (design and implementation, including testing), you have to merge your code to the develop branch, by doing the following things:
-
git checkout master -
git pull -
git merge your_branch -
git push. If conflict happen, solve conflict and commit, then dogit push
-