0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

2)gitでブランチを切ってgithubにpushするまで

Last updated at Posted at 2021-10-21

前回githubからcloneしてくるところまでを行いました
今回は切ったブランチでpushするまでを説明します。

前回のはこちら
https://qiita.com/magisystem0408/items/3955a4ae607047283300

1.ファイルを編集

スクリーンショット 2021-10-21 20.17.58.png

2.コンソールで現在ブランチが切れているかを確認。

スクリーンショット 2021-10-21 20.02.29.png

3.リモートリポジトリの送る先が登録されているか確認。

git remote show origin HEAD

HEADは現在のブランチ

スクリーンショット 2021-10-21 20.03.32.png

4. gitステージング環境にあげる

わからない人は、webのフォームでいう、フォームに入力している感じ。

ドットは全てのファイルをあげるという意味

git add .

git add index.html
※ あげたいファイル/ディレクトリをgit addの後ろに指定する。

スクリーンショット 2021-10-21 20.06.20.png

5.あげるファイルを確定させる

フォームでいうフォーム押すと確認画面が出てくるあの場面

git commit -m 'ここに変更内容を記述'

スクリーンショット 2021-10-21 20.07.15.png

6.リモートリポジトリにあげる

git push origin HEAD

スクリーンショット 2021-10-21 20.08.56.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?