$ git clone https://github.com/YourUserName/myCity.git
$ git checkout -b ChrisBarnes2000
or
$ gco -b ChrisBarnes2000
- Create a virtual environment to isolate and container-ize our development server.
$ virtualenv env && source venv/bin/ativate
$ pip install --upgrade pip && pip install -r requirements.txt
Run Locally, by Building the image to run the container on docker
$ Flask Run
Test it out at http://localhost:5000.
$ command+C or ⌘C
Description | Short Cut | Regular |
---|---|---|
Add all changes | ga . | git add . |
checkout branch | gco | git checkout |
checkout master branch | gcm | git checkout master |
merge changes to master | gm | git merge Branch |
push to origin | gp | git push |
-
Create/Switch to branch and work on it there..
$ gco <Branch-Name>
-
Edit Stuff and Test locally
-
add, commit, & Push to that branch
Use tags when committing
ga .;gcmsg "[function] description"
- [Add]: File or Function XYZ
- [Fix]: Typo or Function or explaination, etc
- [Pull]: From Whom or What Branch For What Reason
- [Refactor]: File or Function XYZ For Reason LMNOP
- [Remove]: File or Function XYZ For Reason LMNOP
- [Update]: File or Function XYZ For Reason LMNOP
$ git push origin <Branch-Name>
-
Switch to master
$ gcm or $ git checkout master
-
Merge with master
$ gm <Branch-Name> or $ git merge <Branch-Name>
-
Push
$ gp or $ git push
🔁🔁 Repeat 🔁🔁 branching and update your team and progress tracker / Rubric-Scoring 🔁🔁