Skip to content

gitの使い方をまとめました

License

MayugeStudio/git-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Git操作早見表

目次


基本的な操作手順

変更を反映したいとき

  1. ファイルをステージングエリアに追加

    git add ファイル名
  2. ファイルをコミット

    git commit -m "コミットメッセージ"
  3. ファイルをプッシュ

    git push origin <branch-name>

変更を取り込みたいとき

Warning

現在いるブランチを確認してからやること!

git pull

OR

git pull origin <branch-name>

リモートの情報が欲しいとき

git fetch

ブランチ関連コマンド

現在のブランチ一覧を確認したいとき

git branch

ブランチを変えたいとき

git switch <branch-name>

ブランチを新しく作りたいとき

移動もする

git switch -c <branch-name>

OR

移動しない

git branch <branch-name>

About

gitの使い方をまとめました

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published