ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Linux Github Clone -> Push
    개발/Git 2022. 6. 2. 16:47

     

    VM 환경에서 Linux를 사용 후에 Xv6 관련 내용을 Github에 넣는 방법을 알아보겠습니다.

     

    1. Xv6 공식 코드를 컴퓨터로 가져오기

    git clone git://github.com/mit-pdos/xv6-public.git

    2. 연결된 github 주소 확인

    git remote -v
    //결과
    origin  https://github.com/mit-pdos/xv6-public.git (fetch)
    origin  https://github.com/mit-pdos/xv6-public.git (push)

     

    3. 자신의 github 주소로 변경

    #remote url 삭제
    git remote remove origin
    #자신의 URL 추가
    #아래는 예시입니다.
    git remote add origin https://github.com/Kimuksung/Xv6.git
    #Check
    git remote -v

    4. Source Commit , Push

    #파일 이동
    cd directory
    #init
    git init
    git add . #변경된 모든 Source 추가
    #git add [file] # 특정 파일만
    #commit
    git commit -m 'commit message'
    #push
    git push origin master

    5. Token 생성


    본인의 Github를 들어가줍니다.

    아래 순서대로 하여줍니다.

    First

     

    Generate Token

     

    위와 같이 하여 Token을 발급한 뒤에 username에 본인의 gitname / Password 부분에 Token 값을 입력하여 주면 됩니다.

     

    '개발 > Git' 카테고리의 다른 글

    [Git] - Master / Main Merge  (0) 2022.07.20

    댓글

Designed by Tistory.