๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ˜ผ ๊นƒํ—ˆ๋ธŒ

๋กœ์ปฌ์— ์กด์žฌํ•˜๋Š” ํ”„๋กœ์ ํŠธ ๊นƒํ—ˆ๋ธŒ์— ์˜ฌ๋ฆฌ๊ธฐ


1. ๊นƒ ํ—ˆ๋ธŒ์—์„œ ์ƒˆ ์ €์žฅ์†Œ๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. (https://github.com/)

1, Create a new repository on Github(https://github.com/)


2. Git Bash๋ฅผ ์—ฝ๋‹ˆ๋‹ค.

2. Open Git Bash.


3. cd to/your/project/directory ํ˜„์žฌ ์ž‘์—…ํ•˜๊ณ  ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

3. Go to the current working directory to your local project.


4. ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๊นƒ๋ ˆํฌ๋กœ ์ดˆ๊ธฐํ™”ํ•ด์ค๋‹ˆ๋‹ค.

4. Initialize the local directory as a Git repository.

$ git init

5. ๋กœ์ปฌ์— ์žˆ๋Š” ํŒŒ์ผ๋“ค์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์ปค๋ฐ‹ํ•ฉ๋‹ˆ๋‹ค. 

5. Add the files in your new local repository and Commit the files.

$ git add . $ git commit -m "First Commit"

6. ๋กœ์ปฌ ํ”„๋กœ์ ํŠธ ํŒŒ์ผ์— ์›๊ฒฉ ์ €์žฅ์†Œ์˜ ์ฃผ์†Œ๋ฅผ ์„ค์ •ํ•ด์ค๋‹ˆ๋‹ค. 

6. Set URL of the remote repository.

$ git remote add origin [ github Clone URL ]

7. ๋กœ์ปฌ ๋ ˆํฌ์—์„œ ์žˆ์—ˆ๋˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ๋“ค์„ ๋ฆฌ๋ชจํŠธ ๋ ˆํฌ๋กœ pushํ•ฉ๋‹ˆ๋‹ค.

7. Push the changes in your local repository to Github.

$ git push origin master