- Commit 주기는 기능이 완성된 상태에서 할 것(빌드나 동작의 완성 상태)
- 한줄로 간결하게 요약 끝에는 마침표(.)을 찍지 않음
- 제목 첫글자는 대문자로 쓸것
- 무엇을 왜 했는지만 쓰면됨 (어떻게는 쓸필요없음 - 코드로 확인가능)
[Commit Message Example]
- "[동사] + [목적어] + [보어]"
- "[행위] + [대상] + [사유]"
- "Modify CNN parameter for train"
- "Add new class to make node"
- "Fix the bug returns a type error"
- "Merge workflow neuralnet_node to add function"
Frequently Use Command
$ git status
$ git pull -r
Git flow is (Modified -> Staged(ADD) -> Commit)
$ git add "파일명"
$ git commit -m "내용"
$ git push
Set Global PATH
$ git config --global user.namenode "ID"
$ git config --global user.email "[email protected]"
Cancel PUSH
$ git push -f origin (last commit id):master
Local RESET
$ git fetch origin
$ git reset --hard origin/master
Fix conflict (After pull and pop)
$ git stash
$ git stash pop
- [Mark Down Editor] (http://dillinger.io) - Online Guide
Run -> Edit Configurations -> Python (+)
Name : django
Scripts : /home/dev/tensormsa/manage.py
Scripts Parameter : runserver HOSTNAME:8000 (ex:HOSTNAME - Docker Container ID)
delete /master/migrations/*.py (except init.py)
drop table master_GRAPH_FLOW_INFO,
master_NN_DEF_LIST_INFO,
master_NN_DEF_LIST_ID_INFO,
master_NN_VER_WFLIST_INFO,
master_NN_VER_BATCHLIST_INFO,
master_TRAIN_SUMMARY_RESULT_INFO,
master_TRAIN_SUMMARY_ACCLOSS_INFO,
master_BATCH_INFO_JOBCONFIG,
master_NN_WF_STATE_INFO,
master_NN_WF_EASY_MODE_RULE,
master_NN_WF_NODE_RELATION,
master_WF_TASK_MENU_RULE,
master_WF_TASK_SUBMENU_RULE,
master_NN_WF_NODE_INFO,
master_WF_TASK_REALATION_RULE,
master_AUTO_ML_RULE
make migrations
./manage.py makemigrations
./manage.py migrate
or delete from django_migrations where app = 'master';
./manage.py migrate
delete /chatbot/migrations/*.py (except init.py)
drop table
Chatbot_CB_ENTITY_SYNONYM_LIST,
Chatbot_CB_ONTOLOGY_INFO,
Chatbot_CB_TAGGING_INFO,
Chatbot_CB_RESPONSE_LIST_INFO,
Chatbot_CB_SERVICE_LIST_INFO,
Chatbot_CB_MODEL_LIST_INFO,
Chatbot_CB_ENTITY_LIST_INFO,
Chatbot_CB_STORYBOARD_LIST_INFO,
Chatbot_CB_INTENT_LIST_INFO,
Chatbot_CB_ENTITY_RELATION_INFO,
Chatbot_CB_DEF_LIST_INFO
make migrations
./manage.py makemigrations chatbot
./manage.py migrate chatbot
./manage.py migrate --fake appName zero
./manage.py makemigrations chatbot
./manage.py migrate chatbot
vi jupyter_notebook_config.py
c.NotebookApp.ip = '*'
Find in vi - /ip n N