README.md
프로젝트와 Repository를 설명하는 책의 표지와 같은 문서
나와 동료, 이 repo의 사용자를 위한 문서
# Project Name
Abstract your project in few lines.
see [project sample page](project link)
## Documentation
### Installation
To install,
`$ pip install sesame`
and run `$ python open_sesame.py`
### Supported Python versions
`>=3.6`
### More Information
- [API docs]()
- [Official website]()
### Contributing
Please see [CONTRIBUTING.md]()
### License
Sesame is Free software, and may be redistributed under the terms of specified in the [LICENSE]() file.
.gitignore
.gitignore 는 git이 파일을 추적할 때, 어떤 파일이나 폴더 등을 추적하지 않도록 명시하기
위해 작성하며, 해당 문서에 작성된 리스트는 수정사항이 발생해도 git이 무시하게 됩니다.
특정 파일 확장자를 무시하거나 이름에 패턴이 존재하는 경우, 또는 특정 디렉토리 아래의 모
든 파일을 무시할 수 있습니다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/first-repo (main)
$ touch .gitignore
위와 같은 방법으로 생성
https://www.toptal.com/developers/gitignore
gitignore.io
Create useful .gitignore files for your project
www.toptal.com
여기서 ignore할 언어나 운영체제 관련 파일을 지정하고 내용을 복사하여, vi .gitignore에서 붙여넣기 하면 된다.
CF)
add -> commit -> push
git add XX.XX
git commit XX.XX
git push origin main
Branch
분기점을 생성하여 독립적으로 코드를 변경할 수 있도록 도와주는 모델

모든 branch 확인하기
$ git branch
Create branch/ 만들기
$ git branch stem
Switch branch/ 변경
$ git switch branch_name
branch 합병(main branch에서 merge를 사용하여야함)
$ git merge branch_name
delete branch
$ git branch -D branch_name
push with specified remote branch
$ git push origin branch_name
fizzbuzz를 fizz라는 branch와 buzz라는 branch를 만들어라.
이후 fizzbuzz게임에 맞추어 각각 fizzbuzz.py를 작성하고, main branch에서 두개의 branch를 merge하여라.
근데 두개의 branch를 각각 main으로 가져오는 과정에서 충돌이 발생할 수도 있다.
이에 대한 문제의 해결책은 아래에 나와있다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch fizz
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch
fizz
* main
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git switch fizz
Switched to branch 'fizz'
-- branch를 fizz로 변경하였다. switch랑 ckeckout쓰임
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ git branch
* fizz
main
--> *가 이동하였음을 알수있다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ touch fizzbuzz.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ vi fizzbuzz.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ cat fizzbuzz.py
for i in range(1,15+1):
if i % 3 == 0 :
print("fizz")
else :
print(i)
--> fizz에 대한 파이썬 내역을 입력함
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ git status
On branch fizz
nothing to commit, working tree clean
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ git branch
* fizz
main
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fizz)
$ git switch main
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ cat fizzbuzz.py
--> 아무것도 나오지 않음
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git merge fizz
Updating 9975479..e374b59
Fast-forward
fizzbuzz.py | 6 ++++++
1 file changed, 6 insertions(+)
->> fizz의 branch를 main으로 합병하였다!
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch -D fizz
Deleted branch fizz (was e374b59).
--> fizz를 삭제하였다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch buzz
--> buzz 생성
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git switch buzz
Switched to branch 'buzz'
--> buzz로 옮김
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (buzz)
$ cat fizzbuzz.py
for i in range(1,15+1):
if i % 3 == 0 :
print("fizz")
else :
print(i)
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (buzz)
$ vi fizzbuzz.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (buzz)
$ git add fizzbuzz.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (buzz)
$ git commit fizzbuzz.py
[buzz 542ac20] Feat : Print buzz
1 file changed, 4 insertions(+), 2 deletions(-)
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (buzz)
$ git switch main
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 3 commits.
(use "git push" to publish your local commits)
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch
buzz
* main
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git merge buzz
Auto-merging fizzbuzz.py
CONFLICT (content): Merge conflict in fizzbuzz.py
Automatic merge failed; fix conflicts and then commit the result.
--> CONFICT
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main|MERGING)
$ git status
On branch main
Your branch is ahead of 'origin/main' by 3 commits.
(use "git push" to publish your local commits)
You have unmerged paths. ---> 새로운 오류!
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: fizzbuzz.py
no changes added to commit (use "git add" and/or "git commit -a")
---> 기존 fizz를 main으로 가져온 이후, buzz와 합쳤으나, 두개의 파이썬이 합쳐지기에,
for문의 변수도 다르고, in range의 숫자도 달라서, 충돌이 일어났다.
vi fizzbuzz.py를 통해 정리한 것이 아래와 같다
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main|MERGING)
$ cat fizzbuzz.py
<<<<<<< HEAD
for j in range(1,20+1):
if j % 15 ==0 :
print("fizzbuzz")
elif j % 3 == 0 :
print("FIZZ")
elif j % 5 == 0 :
print("BUZZ")
else :
print(j)
=======
>>>>>>> buzz
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main|MERGING)
$ git add fizzbuzz.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main|MERGING)
$ git commit fizzbuzz.py --> 하면 안됨
fatal: cannot do a partial commit during a merge.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main|MERGING)
$ git commit --> 이렇게 해야함
[main 27b85c0] Merge branch 'buzz'
Practice
새로운 repository를 생성(이름은 자유)하여 다음 과제 중 둘 이상을 수행하세요.
1. 사용자의 입력(1~3000 사이의 정수)년도가 윤년인지 알려주는 function
2. ethiopian multiplication
3. fibonacci sequence(recursion)
4. fibonacci sequence(with memoization)
5. fibonacci sequence(with binet's formula)
조건
1. 하나의 파일에 작업해야 함
2. 작업 시 브랜치를 생성하여 작업해야 함
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch yoon
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch
buzz
* main
yoon
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git switch yoon
Switched to branch 'yoon'
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ touch yoon.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ vi yoon.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ cat yoon
cat: yoon: No such file or directory
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ cat yoon.py
While True:
is_leap_year = None
year = int(input())
if year % 4 == 0:
if year % 100:
if year % 400:
is_leap_year = True
else:
is_leap_year = False
else:
is_leap_year = True
if is_leap_year:
print(f'{year} is a leap year')
else:
print(f'{year} is not a leap year')
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ git add yoon.py
warning: in the working copy of 'yoon.py', LF will be replaced by CRLF the next time Git touches it
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (yoon)
$ git commit yoon.py
warning: in the working copy of 'yoon.py', LF will be replaced by CRLF the next time Git touches it
[yoon 6cb4ca4] Feat: Leap year Detector
1 file changed, 23 insertions(+)
create mode 100644 yoon.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch fibonacci
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git switch fibonacci
Switched to branch 'fibonacci'
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fibonacci)
$ git branch
* fibonacci
main
yoon
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (fibonacci)
$ cat fibonacci.py
def fib(n):
_curr, _next = 0, 1
for _ in range(n):
_curr, _next = _next, _curr + _next
return _curr
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git add fibonacci\
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git commit fibonacci
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git merge yoon
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git merge fibonacci
Merge made by the 'ort' strategy.
fibonacci,.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 fibonacci,.py
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch -D fibonacci
Deleted branch fibonacci (was 33f88ae).
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/documents/dev/branch-practice (main)
$ git branch -D yoon
Deleted branch yoon (was 6cb4ca4).
아래 사이트를 통해서
ReviewNB - Jupyter Notebook Code Reviews & Collaboration
Join 500+ companies like Amazon, Microsoft, Lyft, Deloitte, AirBnB in using ReviewNB to streamline your data science workflow. We enable Code Reviews & Collaboration for Jupyter Notebooks.
www.reviewnb.com
코딩의 변화를 더욱 시각화를 잘 표시해서 확인할 수 있다.
깃헙 Blog 를 작성하는 법에 대해 공부하였다.
https://jinjun941003.github.io/
JIN's Blog
I WANT GO HOME…. IM HUNGRY, I’m tired….
jinjun941003.github.io
1. hexo 설치
사용하고자 하는 폴더에서 node랑 npm 버전 확인
npm 설치
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~
$ node -v
v16.17.0
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~
$ npm -v
8.15.0
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~
$ npm install -g hexo-cli
added 59 packages, and audited 60 packages in 3s
14 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 8.15.0 -> 8.18.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.18.0>
npm notice Run `npm install -g npm@8.18.0` to update!
npm notice
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~
$ hexo
Usage: hexo <command>
Commands:
help Get help on a command.
init Create a new Hexo folder.
version Display version information.
Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console
For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/
https://hexo.io/docs/commands --보고 작성중
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~
$ cd Documents/dev
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev
$ ls
TIL/ branch-practice/ first-repo/ practice.md
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev
$ hexo init githubvlog
INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
INFO Install dependencies
INFO Start blogging with Hexo!
2. 디렉토리 만들기
hexo init 이름
-github블로그 생성
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev
$ ls
TIL/ branch-practice/ first-repo/ githubvlog/ practice.md
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev
$ cd githubvlog/
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ ls
_config.landscape.yml node_modules/ package.json source/
_config.yml package-lock.json scaffolds/ themes/
npm install로 추가 설치 확인
추가로 설치할 요소들을 npm install 해준다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ npm install
up to date, audited 243 packages in 1s
19 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
가상 서버를 띄운다.
- hexo generate
- hexo server
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ hexo generate
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Start processing
INFO Files loaded in 270 ms
INFO 0 files generated in 368 ms
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ hexo server
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
서버 실행되면 localhost로 페이지가 연결된다.-- >http://localhost:4000/ 이것이다.
- 새글 작성해보기
hexo new post "이름"
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/
$ hexo new post in_the_airport
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Created: ~\Documents\dev\githubvlog\source\_post <--- 파일위치
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/
$ vi source/_posts/in-the-airport.md --> vi로 글 작성하면 된다.
글 작성후 clean과 generate 해주어야 한다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/
$ hexo clean
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Deleted database.
INFO Deleted public folder.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/
$ hexo generate
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Start processing
INFO Files loaded in 244 ms
INFO Generated: archives/2022/index.html
INFO Generated: archives/index.html
INFO Generated: archives/2022/08/index.html
INFO Generated: images/apple-touch-icon-next.png
INFO Generated: images/favicon-16x16-next.png
INFO Generated: tags/heco/index.html
INFO Generated: index.html
INFO Generated: categories/Data-Science/Big-Data/inde
INFO Generated: images/favicon-32x32-next.png
INFO Generated: images/logo-algolia-nebula-blue-full.
INFO Generated: images/logo.svg
INFO Generated: images/avatar.gif
INFO Generated: css/noscript.css
INFO Generated: js/third-party/fancybox.js
INFO Generated: js/bookmark.js
INFO Generated: js/schemes/muse.js
INFO Generated: tags/nod/index.html
INFO Generated: tags/python/index.html
INFO Generated: categories/Data-Science/index.html
INFO Generated: js/comments.js
INFO Generated: js/comments-buttons.js
INFO Generated: js/next-boot.js
INFO Generated: js/config.js
INFO Generated: js/pjax.js
INFO Generated: js/motion.js
INFO Generated: js/schedule.js
INFO Generated: js/utils.js
INFO Generated: js/third-party/pace.js
INFO Generated: css/main.css
INFO Generated: js/third-party/chat/chatra.js
INFO Generated: js/third-party/analytics/growingio.js
INFO Generated: js/third-party/search/algolia-search.
INFO Generated: js/third-party/comments/disqus.js
INFO Generated: js/third-party/math/mathjax.js
INFO Generated: js/third-party/statistics/firestore.j
INFO Generated: js/third-party/tags/pdf.js
INFO Generated: js/third-party/quicklink.js
INFO Generated: tags/numpy/index.html
INFO Generated: js/third-party/rating.js
INFO Generated: js/third-party/analytics/baidu-analyt
INFO Generated: js/third-party/chat/tidio.js
INFO Generated: js/third-party/chat/gitter.js
INFO Generated: js/third-party/analytics/google-analy
INFO Generated: js/third-party/comments/disqusjs.js
INFO Generated: js/third-party/comments/changyan.js
INFO Generated: js/third-party/comments/gitalk.js
INFO Generated: js/third-party/comments/livere.js
INFO Generated: js/third-party/comments/isso.js
INFO Generated: js/third-party/comments/utterances.js
INFO Generated: js/third-party/search/local-search.js
INFO Generated: js/third-party/math/katex.js
INFO Generated: js/third-party/statistics/lean-analyt
INFO Generated: js/third-party/tags/mermaid.js
INFO Generated: 2022/08/19/in-the-airport/index.html
INFO Generated: 2022/08/18/I-want-to-go-home/index.ht
INFO Generated: 2022/08/18/My-New-Blog/index.html
INFO Generated: 2022/08/18/hello-world/index.html
INFO 57 files generated in 638 ms
- hexo-deployer-git 플러그인 설치합니다.
hexo 블로그를 github에 배포할 때 필요한 플러그인을 설치합니다
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ npm install hexo-deployer-git --save
added 1 package, and audited 242 packages in 613ms
19 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
이후 글을 deploy 해야 블로그에 반영된다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ hexo deploy
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
warning: in the working copy of '2022/08/18/I-want-to-go-home/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '2022/08/18/My-New-Blog/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '2022/08/18/hello-world/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'archives/2022/08/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'archives/2022/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'archives/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'categories/Data-Science/Big-Data/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'categories/Data-Science/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'css/main.css', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'css/noscript.css', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/bookmark.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/comments-buttons.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/comments.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/config.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/motion.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/next-boot.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/pjax.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/schedule.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/schemes/muse.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/analytics/baidu-analytics.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/analytics/google-analytics.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/analytics/growingio.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/chat/chatra.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/chat/gitter.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/chat/tidio.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/changyan.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/disqus.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/disqusjs.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/gitalk.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/isso.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/livere.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/comments/utterances.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/fancybox.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/math/katex.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/math/mathjax.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/pace.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/quicklink.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/rating.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/search/algolia-search.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/search/local-search.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/statistics/firestore.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/statistics/lean-analytics.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/tags/mermaid.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/third-party/tags/pdf.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'js/utils.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'tags/heco/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'tags/nod/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'tags/numpy/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'tags/python/index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '2022/08/19/in-the-airport/index.html', LF will be replaced by CRLF the next time Git touches it
[master aa9b178] Site updated: 2022-08-19 19:23:41
15 files changed, 435 insertions(+), 17 deletions(-)
create mode 100644 2022/08/19/in-the-airport/index.html
Enumerating objects: 70, done.
Counting objects: 100% (70/70), done.
Delta compression using up to 12 threads
Compressing objects: 100% (24/24), done.
Writing objects: 100% (37/37), 3.68 KiB | 942.00 KiB/s, done.
Total 37 (delta 15), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (15/15), completed with 13 local objects.
To https://github.com/JINJUN941003/JINJUN941003.github.io.git
123e85e..aa9b178 HEAD -> main
branch 'master' set up to track 'https://github.com/JINJUN941003/JINJUN941003.github.io.git/main'.
INFO Deploy done: git
글을 쓰고
hexo clean
hexo generate
hexo server
가상 로컬 주소 확인
hexo deploy
형식으로 깃허브 블로그에 적을 수 있다.
_config.yml으로 깃허그 블로그 폰트나 테마 설정할 수 있다.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ cat _config.yml
# JIN's Blog Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: JIN's Blog
subtitle: ''
description: ''
keywords: Data Science
author: JIN JUN
language: en
timezone: ''
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://JINJUN941003.github.io
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repo: https://github.com/JINJUN941003/JINJUN941003.github.io.git
branch: main
vi로 폰트 설정 후 ,
hexo clean
hexo generate
hexo deploy 해야한다.
또한 테마를 NEXT로 설치 해보자.
next 테마 설치
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ npm install hexo-theme-next
added 1 package, and audited 243 packages in 944ms
19 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ vi _config.yml
-theme : next 로 수정
JIN SEONG EUN@DESKTOP-0U9MK13
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ hexo clean
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.12.3
Documentation: https://theme-next.js.org
========================================
INFO Deleted database.
INFO Deleted public folder.
JIN SEONG EUN@DESKTOP-0U9MK13 MINGW64 ~/Documents/dev/githubvlog
$ hexo deploy
INFO Deploy done: git
'Git & Github' 카테고리의 다른 글
Git & Git hub 03 (0) | 2022.09.13 |
---|---|
Git, Github 01 (0) | 2022.08.16 |