Forkํ Repository ์ต์ ์ํ๋ก ์ ๋ฐ์ดํธํ๊ธฐ
Github Fork
Fork๋ ๋ค๋ฅธ์ฌ๋์ Repository๋ฅผ ์์ ์ ์ ์ฅ์๋ก ๋ณต์ฌํ๋ ๊ฒ์ด๋ค.
Forkํ๋ ๋ฐฉ๋ฒ์ ๋ค์ ๊ฒ์๊ธ์ ์ฐธ๊ณ ํ์. Github ์ํ๋ Repository Forkํ๋ ๋ฐฉ๋ฒ
Github์์ ์คํ์์ค์ ๊ธฐ์ฌํ๊ฑฐ๋ ํ์ธ์ด ์ฌ๋ฆฐ ์ฝ๋์์ ์ค๋ฅ๋ฅผ ์์ ํ์ฌ ์ฌ๋ ค์ฃผ๋ ๋ฑ ์ฌ๋ฌ๊ฐ์ง ์ด์ ๋ก ํน์ Repository๋ฅผ Forkํด์ผํ ๋๊ฐ ์๋ค.
๊ทธ๋ฐ๋ฐ ๋ค๋ฅธ์ฌ๋์ Repository๋ฅผ ์์ ์ ์ ์ฅ์๋ก ๋ณต์ฌํ ํ์ ๊ทธ ์ฌ๋์ Repository์ ๋ณํ๊ฐ ์๊ธฐ๋ฉด ๋์ค์ Pull Request๋ฅผ ๋ณด๋์ ๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์๋ค.
์ด๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด Fork๋ Repository๋ฅผ ์ต์ ์ํ๋ก ์ ์งํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํด๋ณด๊ฒ ๋ค.
์ ์ฅ์ Github์ฃผ์ ์ถ๊ฐํ๊ธฐ
๋จผ์ ๋ด๊ฐ Forkํด์จ Repository๊ฐ ์ ์ฅ๋ ๊ฒฝ๋ก๋ก ์ด๋ํ์ฌ ์๋์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํด์ค๋ค.
git remote -v
๊ทธ๋ฌ๋ฉด ๋ค์๊ณผ ๊ฐ์ด ๋ณธ์ธ์ github repository ์ฃผ์๊ฐ ๋์ค๊ฒ ๋๋ค.
origin https://github.com/azzyjk/KOR_mood.git (fetch)
origin https://github.com/azzyjk/KOR_mood.git (push)
์ฌ๊ธฐ์ ์๋์ ๋ช ๋ น์ด๋ฅผ ํตํด ์๋ณธ ์ ์ฅ์์ ์ฃผ์๋ฅผ ์ถ๊ฐํด์ค๋ค.
git remote add upstream "Forkํด์จ Repository์ ์ฃผ์"
ex) git remote add upstream https://github.com/LuterGS/KOR_mood.git
์ดํ ๋ค์ git remote -v๋ฅผ ํ์ ๋ ์๋์ ๊ฐ์ด ์ถ๊ฐ๊ฐ ๋์์ผ๋ฉด ์ฑ๊ณตํ ๊ฒ์ด๋ค.
origin https://github.com/azzyjk/KOR_mood.git (fetch)
origin https://github.com/azzyjk/KOR_mood.git (push)
upstream https://github.com/LuterGS/KOR_mood.git (fetch)
upstream https://github.com/LuterGS/KOR_mood.git (push)
Repository ๋๊ธฐํ ํ๊ธฐ
๋ค์ ํด๋น Repository๊ฐ ์ ์ฅ๋ ๊ฒฝ๋ก๋ก ์ด๋ํ์ฌ ์๋์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํด์ค๋ค.
git fetch upstream
๋ง์ฝ ๋ณ๊ฒฝ๋ ๋ด์ฉ์ด ์์ผ๋ฉด ์๋์ ๊ฐ์ด ๋์ค๊ฒ ๋๋ค.
Updating 8523688..70da8ef
Fast-forward
Dockerfile | 9 +-
NeuralNet.py => ML1/NeuralNet1.py | 53 +++++++----
best_model.h5 => ML1/best_model.h5 | Bin
tokenizer.pickle => ML1/tokenizer.pickle | Bin
ML2/NeuralNet2.py | 146 +++++++++++++++++++++++++++++++
ML2/tokenizer.pickle | Bin 0 -> 106850 bytes
ML2/variables.data-00000-of-00001 | Bin 0 -> 6361855 bytes
ML2/variables.index | Bin 0 -> 3210 bytes
main.py | 38 ++++++++
9 files changed, 223 insertions(+), 23 deletions(-)
rename NeuralNet.py => ML1/NeuralNet1.py (78%)
rename best_model.h5 => ML1/best_model.h5 (100%)
rename tokenizer.pickle => ML1/tokenizer.pickle (100%)
create mode 100644 ML2/NeuralNet2.py
create mode 100644 ML2/tokenizer.pickle
create mode 100644 ML2/variables.data-00000-of-00001
create mode 100644 ML2/variables.index
create mode 100644 main.py
์ ๋ช ๋ น์ด๋ฅผ ํตํด ์๋ณธ Repository์ master branch์ ์๋ ๋ด์ฉ๋ค์ด ๋ณธ์ธ์ PC์ upstream/master๋ก ๋ณต์ฌ๊ฐ ๋๋ค.
์๋์ ๊ฐ์ด Github Desktop์์ ํ์ธํ ์ ์๋ค.
์ดํ master์ ๊ฐ์ ธ์จ ๋ด์ฉ์ ํฉ์น๊ธฐ ์ํด ๋จผ์ master๋ก ์ด๋ํด์ค๋ค.
git checkout master
๊ทธ๋ฆฌ๊ณ ์๋์ ๋ช ๋ น์ด๋ฅผ ํตํด mergeํด์ค๋ค.
git merge upstream/master
์ดํ git push๋ฅผ ํ๋ฉด ๋์ Repository์ ์๋ณธ Repository์ ๋ณ๊ฒฝ๋ ์ฌํญ์ด ์ ์ฉ๋๋ค.
reference : https://azzyjk.github.io/Github_Fork_Update/