0
0

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.

【備忘録】Gitでpushする

Posted at

プログラミング勉強中
Githubにコードを上げるか~となったときによく手順を忘れるので
自分用のメモとして残します。

①Gitを初期化(初回のみ)

$ git init

②git addで変更内容を反映

//すべてのファイルをaddする
$ git add .

//特定のファイルのみaddする
$ git add [ファイル名]

③コミットする

$ git commit -m "コメント"

④Github上のリモートリポジトリと紐づけする(初回のみ)

$ git remote add origin [url]

⑤pushする

$ git push origin master

以上で完了

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?