LoginSignup
2
1

More than 3 years have passed since last update.

Githubに公開するためのコマンドをメモ

Last updated at Posted at 2019-06-22

流れ

git init
gitを作成
git add ファイル名
gitにgithubに公開するファイルをに公開するファイルを入れる
git commit -m "gitのお勉強" (⇦メッセージは何でもいい(""の中))
gitに変更内容を保存させる

カレントディレクトリの中でaddしていないファイルがあるとエラーがでる(隠しファイル以外)

git status
gitの内容を確認

(やらなくてもいい)

git remote add origin リポジトリのurl
githubのリポジトリに現在のgitを追加
git push origin master
Githubに公開!

参考になったサイト

今さら聞けない!GitHubの使い方【超初心者向け】|TechAcademyマガジン

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