- 사용 플로우
 - 로컬에서
 - git init
 - 파일 추가 및 수정 및 삭제.
 - git add .
 - git commit
 
- 리모트에 반영
 - git push {remote} {branch}
 - 리모트와 다른 내역에 대해서 전부 반영함.
 
*. git 속에 다른 git을 추가할 때 
$ git submodule add https://github.com/mins01/ui_SelectArea.git SelectArea
Cloning into 'D:/work/mins01/html/WC2/etcmodule/SelectArea'...
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 81 (delta 46), reused 53 (delta 29), pack-reused 0
Unpacking objects: 100% (81/81), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.
*. 서브모듈 갱신
$ git submodule update --recursive --remote
이렇게 안하면 갱신을 안하는 경우가 많네....
서브모듈 갱신 초기화 (다른 곳에서 update 하는 경우)
$git submodule update --init --recursive
$ git submodule update  --remote --merge
이게 제일 잘 되는 듯. 모든 서브모듈 체크해서 리보드에서 업데이트하며 --merge 옵션으로 알아서 checkout 해준다.
*. git submilude 삭제 방법
http://snowdeer.github.io/git/2018/08/01/how-to-remove-git-submodule/
https://jjeong.tistory.com/1345
*. 로그에서 파일 목록 확인
git log --stat
=>
commit 17fad1cea78fb265f86d285e6cecf30ce3b3cc8e (HEAD -> master, origin/master, origin/HEAD)
Author: mins01 <mins01.lycos.co.kr@gmail.com>
Date:   Thu Mar 25 18:05:13 2021 +0900
    cli_xxx.php 적용
 application/config/constants_4_mh.php | 4 +++-
 application/config/database.php       | 2 +-
 application/controllers/ForCli.php    | 6 +++++-
 cli_dev.php                           | 3 +++
 cli_real.php                          | 3 +++
 5 files changed, 15 insertions(+), 3 deletions(-)
*. 로그에서 파일 목록 확인하기
# git log --name-only
=> 
commit c5fdbab2bbce9c4fa63239dda4e1109bdf5d1b89 (HEAD -> develop, origin/develop)
Author: mins01 <mins01.lycos.co.kr@gmail.com>
Date:   Wed Jun 2 16:42:27 2021 +0900
    테스트 소스 코드
app/Http/Controllers/TestTableApiController.php
app/Http/Controllers/TestTableWebController.php
app/Models/TestTable.php
database/migrations/2021_06_02_004823_test_table.php
database/migrations/2021_06_02_012145_test_table2.php
commit c5fdbab2bbce9c4fa63239dda4e1109bdf5d1b89 (HEAD -> develop, origin/develop)
Author: mins01 <mins01.lycos.co.kr@gmail.com>
Date:   Wed Jun 2 16:42:27 2021 +0900
    테스트 소스 코드
 app/Http/Controllers/TestTableApiController.php    |  64 ++++++++
 app/Http/Controllers/TestTableWebController.php    | 180 +++++++++++++++++++++
 app/Models/TestTable.php                           |  20 +++
 .../migrations/2021_06_02_004823_test_table.php    |  37 +++++
 .../migrations/2021_06_02_012145_test_table2.php   |  38 +++++
 resources/views/testTable/create.blade.php         |  53 ++++++
 resources/views/testTable/edit.blade.php           |  54 +++++++
 resources/views/testTable/index.blade.php          |  42 +++++
 resources/views/testTable/show.blade.php           |  38 +++++
 resources/views/testTable/show2.blade.php          |  30 ++++
 routes/api.php                                     |   8 +
 routes/web.php                                     |  11 ++
 12 files changed, 575 insertions(+)
# git log --graph --all --decorate
(그래프,모든 브랜치, 브랜치 표시)
* commit bbbb184273a002eefbe856a710e6ae9da541a3f1 (HEAD -> main, origin/main, origin/HEAD)
| Author: 테스터 <test@tst.com>
| Date:   Sun Mar 6 21:28:18 2022 +0900
|
|     업로드쪽 계속 수정. 불필요 uploader deprecated 붙임
|
* commit c1e0b9f70321621fdcca438912c5c64f21c6b13a
| Author: 테스터 <test@tst.com>
| Date:   Sun Mar 6 20:29:43 2022 +0900
|
|     FileUploader 적용중
|
* commit b69a7ef765c6ec741e992d7de12707e89fabd699
| Author: test01 <test@tst.com>
| Date:   Thu Mar 3 18:06:11 2022 +0900
|
|     route_with_query $board->route_with_query  잡다
|
* commit db337c0826a41ec7d7005124c73d45010917cd0b
| Author: test01 <test@tst.com>
| Date:   Thu Mar 3 18:03:29 2022 +0900
|
|     loadTags 관련 수정
|
*   commit 968255f2fae0ddee0d316415b8d4ca3816486576
|\  Merge: b87d898 4c2f126
| | Author: 테스터 <test@tst.com>
| | Date:   Mon Feb 28 20:05:20 2022 +0900
| |
| |     Merge branch 'main' of https://github.com/test01/mhl into main
| |
| * commit 4c2f126ad5f8b5776f60416349630a3401bf896b
| | Author: test01 <test@tst.com>
| | Date:   Mon Feb 28 18:03:23 2022 +0900
| |
| |     잡다
*. 계정저장 삭제 (관리자 권한으로)
git config --system --unset credential.helper
git config --global --unset credential.helper
*. 계정저장 캐시 사용
git config --global credential.helper cache  //약 15분정도
git config --global credential.helper store //git 폴더에 저장
git config credential.helper store //git 폴더에 저장  <-- 보통 이거 쓰면 된다.
git config --global credential.helper wincred  //OS 에서 제공하는 저장소 사용
*. git 인증정보 초기화
git log --pretty=format:"%ad - %s" --date=short
로그를
날짜 - 코메멘트 형식으로 출력
2025-06-25 - Fix bug in user login