"스프링 스타터 프로젝트 HelloWorld GitHub 올리기"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
;스프링 스타터 프로젝트 HelloWorld GitHub 올리기
;스프링 스타터 프로젝트 HelloWorld GitHub 올리기
* [[스프링 스타터 프로젝트 HelloWorld]]에서 이어짐
* [[STS]]에 git관련 플러그인 EGit이 기본 탑재되어 있는데 로컬저장소만 관리가능한 듯
:여기서는 원격저장소인 GitHub에 올릴 것으로, 따로 Git을 설치하여 작업함
==사전작업==
* [[윈도우 Git 설치]]


==GitHub 저장소 생성==
==GitHub 저장소 생성==
8번째 줄: 15번째 줄:
* [Create repository] 클릭
* [Create repository] 클릭


==STS==
==git push==
* STS 우상단 田 클릭(Open Perspective) --- Git 더블클릭
* 윈도우 D:\workspace-sts\HelloWorld 폴더창 열기
* Git Repositories 영역 상단의 GIT+ 노란색 아이콘 클릭
* 빈공간 우클릭 --- 여기서 명령 창 열기(W0
https://raw.githubusercontent.com/eclipse/egit/0e3cfefc/org.eclipse.egit.ui/icons/etool16/createRepository.gif
<syntaxhighlight lang='dos'>
git config --global user.name "이름"
git config --global user.email "이메일주소"
</syntaxhighlight>
<syntaxhighlight lang='dos'>
git init
git add -A
git commit -m "first commit"
git remote add origin https://github.com/계정명/저장소명.git
git push -u origin master
</syntaxhighlight>
<syntaxhighlight lang='console'>
D:\workspace-sts\HelloWorld>git config --global user.name "jmnote"
 
D:\workspace-sts\HelloWorld>git config --global user.email "jmnote@example.com"
</syntaxhighlight>
<syntaxhighlight lang='console'>
D:\workspace-sts\HelloWorld>git init
Initialized empty Git repository in D:/workspace-sts/HelloWorld/.git/
 
D:\workspace-sts\HelloWorld>git add -A
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .mvn/wrapper/maven-wrapper.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in mvnw.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in mvnw.cmd.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main/java/com/example/HelloWorldApplication.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/test/java/com/example/HelloWorldApplicationTests.java.
The file will have its original line endings in your working directory.
</syntaxhighlight>
<syntaxhighlight lang='console'>
D:\workspace-sts\HelloWorld>git commit -m "first commit"
[master (root-commit) 8573caa] first commit
9 files changed, 472 insertions(+)
create mode 100644 .gitignore
create mode 100644 .mvn/wrapper/maven-wrapper.jar
create mode 100644 .mvn/wrapper/maven-wrapper.properties
create mode 100644 mvnw
create mode 100644 mvnw.cmd
create mode 100644 pom.xml
create mode 100644 src/main/java/com/example/HelloWorldApplication.java
create mode 100644 src/main/resources/application.properties
create mode 100644 src/test/java/com/example/HelloWorldApplicationTests.java
</syntaxhighlight>
<syntaxhighlight lang='console'>
D:\workspace-sts\HelloWorld>git remote add origin https://github.com/jmnote/HelloWorld.git
 
D:\workspace-sts\HelloWorld>git push -u origin master
Username for 'https://github.com/': jmnote
Password for 'https://jmnote@github.com/': P@ssw0rd
Counting objects: 23, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (23/23), 46.43 KiB | 0 bytes/s, done.
Total 23 (delta 0), reused 0 (delta 0)
To https://github.com/jmnote/HelloWorld.git
* [new branch]      master -> master
Branch master set up to track remote branch master from origin.
 
D:\workspace-sts\HelloWorld>
</syntaxhighlight>
 
==같이 보기==
* [[스프링 스타터 프로젝트 HelloWorld]]
 
==참고==
*  https://github.com/jmnote/HelloWorld.git
 
[[분류: 스프링 스타터 프로젝트]]
[[분류: STS]]
[[분류: GitHub]]

2020년 11월 2일 (월) 02:50 기준 최신판

1 개요[ | ]

스프링 스타터 프로젝트 HelloWorld GitHub 올리기
여기서는 원격저장소인 GitHub에 올릴 것으로, 따로 Git을 설치하여 작업함

2 사전작업[ | ]

3 GitHub 저장소 생성[ | ]

  • https://github.com/ 접속, 로그인
  • 우상단 내비바의 + 클릭 --- New repository
  • Repository name: 저장소명(여기서는 HelloWorld)
  • [Create repository] 클릭

4 git push[ | ]

  • 윈도우 D:\workspace-sts\HelloWorld 폴더창 열기
  • 빈공간 우클릭 --- 여기서 명령 창 열기(W0
git config --global user.name "이름"
git config --global user.email "이메일주소"
git init
git add -A
git commit -m "first commit"
git remote add origin https://github.com/계정명/저장소명.git
git push -u origin master
D:\workspace-sts\HelloWorld>git config --global user.name "jmnote"

D:\workspace-sts\HelloWorld>git config --global user.email "jmnote@example.com"
D:\workspace-sts\HelloWorld>git init
Initialized empty Git repository in D:/workspace-sts/HelloWorld/.git/

D:\workspace-sts\HelloWorld>git add -A
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .mvn/wrapper/maven-wrapper.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in mvnw.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in mvnw.cmd.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main/java/com/example/HelloWorldApplication.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/test/java/com/example/HelloWorldApplicationTests.java.
The file will have its original line endings in your working directory.
D:\workspace-sts\HelloWorld>git commit -m "first commit"
[master (root-commit) 8573caa] first commit
 9 files changed, 472 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .mvn/wrapper/maven-wrapper.jar
 create mode 100644 .mvn/wrapper/maven-wrapper.properties
 create mode 100644 mvnw
 create mode 100644 mvnw.cmd
 create mode 100644 pom.xml
 create mode 100644 src/main/java/com/example/HelloWorldApplication.java
 create mode 100644 src/main/resources/application.properties
 create mode 100644 src/test/java/com/example/HelloWorldApplicationTests.java
D:\workspace-sts\HelloWorld>git remote add origin https://github.com/jmnote/HelloWorld.git

D:\workspace-sts\HelloWorld>git push -u origin master
Username for 'https://github.com/': jmnote
Password for 'https://jmnote@github.com/': P@ssw0rd
Counting objects: 23, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (23/23), 46.43 KiB | 0 bytes/s, done.
Total 23 (delta 0), reused 0 (delta 0)
To https://github.com/jmnote/HelloWorld.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

D:\workspace-sts\HelloWorld>

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}