0
0

Git よく使うコマンド②

Posted at

はじめに

初心者なのでよく使うコマンドを備忘録第2弾。

1. git add ファイル名

git add ****

  • 変更したファイルをステージングエリアへ追加する。

2. git commit -m "コメント"

git commit -m "****"

  • ステージングにあるファイルをリポジトリに更新する。
  • -mで任意のコメントを付けられる。

3. git push リポジトリ名 ローカルブランチ名:リモートブランチ名

git push push origin ****:****

  • ローカルのリポジトリからリモートのリポジトリへ更新する。
0
0
0

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
0
0