GitとGithub

2549 ワード


どうしてネクタイなの?


一緒に仕事をするから...(コラボレーション)
分散バージョン管理システム

Commands


local
# 초기화
> git init

# 상태
> git status

# unstaged -> stage
> git add "example.py"
> git add .

# commit
> git commit -m "summary"

# commit 확인
>git log

# branch 확인
>git branch -v

# branch 생성
>git branch <branch_name>

# branch 전환
>git checkout <branch_name>

# brnach 병합
>git checkout master
>git merge <branch_name>

# branch 삭제
>git branch -d <branch_name>
remote(本格的なコラボレーション!)
# 연결
>git remote add <별칭=origin> <remote주소>

# remote 확인
> git remote -v

# push
> git push <remote_repo_name> <branch_name>
> git push origin week3/이현규

# remote branch_name을 main으로 변경 (github 정책상 유용)
> git branch -M main
> git push origin main

ジョブの発行方法


今はこのリーダーを作るために長期的に見ると、ビジネスの準備性(?)
1.Fork(githubにインポート-コピー-)
# local에 clone
> git clone <주소> <별칭=repo_name>

# branch 생성 & 전환
> git branch week3/이현규
> git checkout week3/이현규
2. Push
  • 「/」にセミコロン(「week 3/李顕圭」)が含まれている場合、ロシア
  • 「/」を除く支社名(「週3李顕圭」)推進時、誤りX
  • 3. Pull
  • 『3週目』と題した李賢圭
  • base&compare注意!