설정과 구성
저장소를 시작하고 Git을 구성하세요 - init, config, remotes.
Setting up a Git repository
Every Git project starts one of two ways: you create a fresh repository with git init, or you copy an existing one with git clone. From there, git config sets the identity attached to your commits, and git remote wires your local repository to a hosted copy on GitHub, GitLab, or Bitbucket so you can push and pull.
These commands are typically run once per machine or once per project, which is exactly why nobody remembers their flags. Each page in this category covers the syntax, the flags that matter in practice, and copy-paste examples you can run live in the terminal playground.
자주 묻는 질문
How do I start using Git in an existing project?
git init inside the project folder. That creates the hidden .git directory that stores all history. Then stage everything with git add . and record the first snapshot with git commit -m "Initial commit".What is the difference between git init and git clone?
git init creates a brand-new, empty repository in the current folder. git clone copies an existing repository - all its files and its full history - from a URL, and automatically sets that URL up as the origin remote.What should I configure first after installing Git?
git config --global user.name "Your Name" and git config --global user.email "you@example.com". Many teams also set the default branch name with git config --global init.defaultBranch main.