LoginSignup
0
0

More than 3 years have passed since last update.

githubにファイル(フォルダ)を上げる(最低限)

Last updated at Posted at 2019-10-22

ignoreなどの細かいことなどは飛ばしてとりあえずgithubにファイル(フォルダ)を上げる


terminal
cd  当該ディレクトリまでのパス

まずはターミナルで当該ディレクトリに移動。


terminal
git init

リポジトリを作成。


terminal
git add ファイル名 or フォルダ名

でインデックスにファイル or フォルダを追加


terminal
git commit -m "コメント"

任意でコメントをつけてコミットして


terminal
git remote add origin githubのURL

作っておいたリポジトリのurlを貼り付けてリモートリポジトリにインデックスを作成。


terminal
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