LoginSignup
0
0

More than 1 year has passed since last update.

git備忘録

Last updated at Posted at 2022-11-14

ローカルからリモート

1番目

git push する前にリモートとの変更点を見る
上記のコマンドは、こんな感じで逆にもできます。

git diff リモート名/ブランチ名..HEAD
.. の右側が時系列的に最新とみなされるので、この場合は git commit した後にリモートリポジトリとそのこれから push したい箇所を表示したい場合に使えます。

2番目

git addコマンドで、インデックスにコミットしたいファイルを登録する。

3ばんめ

git commitコマンドで、インデックスにあるファイルを更新する。

4ばんめ

git pushコマンドで、ローカルリポジトリの内容をリモートリポジトリに送信する

sannsyou
[git addとcommit、pushの関係をわかりやすく説明する【Gitコマンド解説①】]{https://qiita.com/atsushi101011/items/96054ebbd876e378cac4}

push no error ni tuite
git push時のerror: src refspec master does not match anyについて[]{https://blog.deepblue-ts.co.jp/git/git-push-error/}

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