포스트

Abap Git 연결 방법

Abap Git 연결 방법

1. Github Repository 생성

https://github.com/new 접속

2. Repository 정보 입력

  1. Repository Name/Description : 임의 입력
  2. Choose Visibility : Private

관련 이미지

3. vsCode Git 연결(git 설치 必)

  1. vscode 실행
  2. ctrl + shift + p > git clone > git repository 주소 입력
  3. 연결된 repository에 파일(.abapgit.xml) 생성
    (최상위 루트부터 소스코드를 관리하겠다는 의미)
  4. E : EN, 3 : KO
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
 <asx:values>
  <DATA>
   <MASTER_LANGUAGE>E</MASTER_LANGUAGE>
   <STARTING_FOLDER>/</STARTING_FOLDER>
   <FOLDER_LOGIC>FULL</FOLDER_LOGIC>
  </DATA>
 </asx:values>
</asx:abap>

4. Eclipse Git 설치 및 연결

  1. ABAP GIT 설치
  2. Help > Install New Software… 클릭 후 아래 주소 입력
1
2
# abapGit
https://eclipse.abapgit.org/updatesite/

5. Abap Git 연결

  1. window > show view > abapGit repositories >
  2. Token 생성 후 입력

💡 GitHub 웹사이트 우측 상단 프로필 클릭 -> Settings 이동

  • 좌측 최하단의 Developer settings 클릭
  • Personal access tokens -> Tokens (classic) 선택
  • Generate new token -> Generate new token (classic) 클릭
  • Note에 알아보기 쉽게 abapGit-token 등으로 적고, Expiration(만료일)을 설정합니다.
  • Scopes 설정에서 맨 위에 있는 repo 항목에 반드시 체크합니다. (Private 레포지토리를 읽고 쓰기 위한 필수 권한입니다.)
  • 맨 아래 Generate token 버튼을 누르면 토큰 값이 나옵니다.

관련 이미지 관련 이미지

6. Initial Commit

  1. Main 브랜치 확인 후, 마우스 우클릭
  2. Stage and Push 클릭

관련 이미지

  1. Stage selected objects 클릭
  2. Commit Message 작성
  3. Commit and Push

관련 이미지

이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.