반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- docker
- ajax
- javascript
- config
- FCM
- mybatis
- pwa
- SpringBoot
- popup
- PM2
- Java
- centos7
- jenkins
- Maven
- Tomcat
- security
- rocky9
- Eclipse
- node.js
- yona
- NextJS
- nodejs
- mysql
- git
- jquery
- Push
- MariaDB
- Next.js
- spring3
- MSsql
Archives
- Today
- Total
종이 한장 차이...
yona GIT 활용 참고. 본문
728x90
반응형
SMALL
1. Yona에 생성된 Git 저장소를 clone 받아서 로컬에 Git 저장소를 만들고 README.md 파일을 Yona에 올릴 수 있습니다.
git clone http://graykang@localhost:9000/graykang/test-ex2 test-ex2
cd test-ex2/
echo "# test-ex2" > README.md
git add README.md
git config user.email "graykang@test.com"
git config user.name "graykang"
//git config credential.helper store --> 패스워드 반영구 저장옵션 최초 한번은 입력
git commit -m "Hello Yona"
git push origin master
728x90
반응형
SMALL
2. 로컬에서 Git 저장소를 만들고 remote로 Yona에 생성된 Git 저장소를 직접 추가하고 README.md 파일을 Yona에 올릴 수 있습니다.
mkdir test-ex2
cd test-ex2/
echo "# test-ex2" > README.md
git init
git add README.md
git commit -m "Hello Yona"
git remote add origin http://graykang@localhost:9000/graykang/test-ex2
git push origin master
# IDE 에서 자동으로 git 링크가 않 될 경우 IDE의 team 메뉴를 통해 "share 프로젝트"를 하면 생성한 init 시
등록된 remote 주소와 소스가 자동으로 링크됨.
3. 로컬에 이미 만들어둔 Git 저장소가 있다면 Yona에 생성된 Git 저장소만 remote로 추가하고 코드를 올릴 수 있습니다.
git remote add origin http://graykang@localhost:9000/graykang/test-ex2
git push origin master
4. 지속적으로 코드를 갱신하여 올릴 때는 pull과 push를 사용할 수 있습니다. pull은 remote에서 코드를 가져오고, push는 remote로 코드를 보냅니다.
git pull origin master
git push origin master
728x90
반응형
LIST
'Other' 카테고리의 다른 글
MSSQL SELECT 결과로 DELETE 하기. (0) | 2024.07.26 |
---|---|
windows11 특정 port를 사용중인 프로그램 찾기 (0) | 2024.05.21 |
SQL 테이블내 데이터의 합으로 일괄 업데이트 (0) | 2024.01.10 |
MSSQL 날짜를 문자로 변환... (1) | 2023.12.26 |
MSSQL 설치 후 한글 깨짐 (0) | 2023.12.20 |
Comments