LoginSignup
0
0

More than 1 year has passed since last update.

GitからGitHubにpush

Last updated at Posted at 2021-11-22

初Gitだったので今後のために

1.Gitの準備(リポジトリの作成)

$ git init

2.共有するファイルの選択

$ git add ファイル名

3.ファイルのコミット

$ git commit -m  "メッセージ"

4.リモートリポジトリの登録

$ git remote add origin (GitHubのURL)

5.push

$ git push origin main

※参考

ユーザー名とメールアドレスの設定

$ git config --global user.name ユーザー名
$ git config --global user.email メールアドレス

以上

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