LoginSignup
3

More than 5 years have passed since last update.

よく利用するgitコマンド

Posted at

自分用のメモ

git init

.gitディレクトリを作成(ローカルリポジトリ)

git remote add origin "URL"

リモートリポジトリの追加

git remote -v

現在のリポジトリ設定の確認

git status

ファイルの確認

git branch

現在のブランチの確認

git add .

ファイルの追加

git commit -m "comment"

コミット

git push 送信するbranch:送信先branch

git push origin master

git pull

git checkout rep

ブランチ切り替え

git branch

現在のブランチ確認

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3