프로젝트 생성

2024. 11. 7. 22:45·Git/명령어
반응형

들어가기 전

이번에 깃을 다시 공부하면서 정말 좋은 사이트를 발견했다.

바로 심플한 ui와 애니메이션으로 깃의 내부 동작을 볼수 있는 사이트 

바로 Learn Git 홈페이지이다. 
모든 명령어를 볼 수는 없지만 존재하는 명령어는 해당 사이트를 통해 정리해보자.

 

Learn Git Branching

An interactive Git visualization tool to educate and challenge!

learngitbranching.js.org


git init

첫번 째 명령어는 역시 모든 시스템의 진입점인 init 바로 초기화 명령어다.

더 자세히는 깃 로컬 레포지터리를 생성하는 작업이다.

초기화가 끝나면 다음과 같은 숨기처린된 .git 디렉토리가 보일 것이다.

 

 

 

Git - git-init Documentation

-q --quiet Only print error and warning messages; all other output will be suppressed. --bare Create a bare repository. If GIT_DIR environment is not set, it is set to the current working directory. --object-format= Specify the given object (hash algorithm

git-scm.com

 


git clone

두번 째 명령어는 clone이다.

영어 뜻 그대로 복제하는 명령어다.

 

무엇을 복제할까 ??? 바로 레포지토리 (저장소)이다.

깃에서 저장소는 크게 2가지다 바로 원격(remote)와 내부(local) 저장소다.

하지만 우리는 이 명령어를 보통 원격 저장소에 사용했을 것이다.

git clone https://github.com/wakmusic/wakmusic-iOS.git

 

clone 명령어는 저장소를 복제하는 동작으로 나머지 저장소인 로컬도 복제할 수 있다.

git clone ./targetRepository

 

 

 

Git - git-clone Documentation

In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository. Depending on the transport protocol, some of this information may be absent. Git supports ssh, git, http, and https protoco

git-scm.com

 

반응형

'Git > 명령어' 카테고리의 다른 글

ignore 깜빡 했을 때  (0) 2025.07.12
깃 커밋 관련 명령어  (3) 2024.11.17
깃 기본 명령어  (2) 2024.11.08
'Git/명령어' 카테고리의 다른 글
  • ignore 깜빡 했을 때
  • 깃 커밋 관련 명령어
  • 깃 기본 명령어
Hamp
Hamp
남들에게 보여주기 부끄러운 잡다한 글을 적어 나가는 자칭 기술 블로그입니다.
  • Hamp
    Hamp의 분리수거함
    Hamp
  • 전체
    오늘
    어제
    • 분류 전체보기 (304)
      • CS (30)
        • 객체지향 (2)
        • Network (7)
        • OS (6)
        • 자료구조 (1)
        • LiveStreaming (3)
        • 이미지 (1)
        • 잡다한 질문 정리 (0)
        • Hardware (2)
        • 이론 (6)
        • 컴퓨터 그래픽스 (0)
      • Firebase (3)
      • Programing Langauge (37)
        • swift (32)
        • python (4)
        • Kotlin (1)
      • iOS (132)
        • UIKit (37)
        • Combine (1)
        • SwiftUI (32)
        • Framework (7)
        • Swift Concurrency (22)
        • Tuist (6)
        • Setting (11)
        • Modularization (1)
        • Instruments (6)
      • PS (59)
        • 프로그래머스 (24)
        • 백준 (13)
        • LeetCode (19)
        • 알고리즘 (3)
      • Git (18)
        • 명령어 (4)
        • 이론 (2)
        • hooks (1)
        • config (2)
        • action (7)
      • Shell Script (2)
      • Linux (6)
        • 명령어 (5)
      • Spring (13)
        • 어노테이션 (1)
        • 튜토리얼 (11)
      • CI-CD (4)
      • Android (0)
        • Jetpack Compose (0)
  • 블로그 메뉴

    • 홈
    • 태그
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    property
    lifecycle
    Tuist
    AVFoundation
    CS
    Swift
    SwiftUI
    GIT
    프로그래머스
    백준
    boostcamp
    concurrency
    Spring
    dp
    protocol
    dfs
    UIKit
    IOS
    투포인터
    dispatch
  • 최근 댓글

  • 최근 글

  • 반응형
  • hELLO· Designed By정상우.v4.10.0
Hamp
프로젝트 생성
상단으로

티스토리툴바