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