LoginSignup
1
1

More than 5 years have passed since last update.

windowsだとGitすら難しいらしい

Posted at

Gitってなんなの?な初心者さんに最初に伝えてたい『簡単手順フロー』

前提として「公開鍵認証」をしておく必要があるのと「Git上のユーザー名とパスワードは忘れずに」を大事にする事...?当たり前か!

このページでは、ファイル作る・レポジトリ作る・addしてcommitしてpushしてを理解する工程だけです。

Github上で「Github上のエリア」

1.ワーキングディクレトリ
2.ステージングエリア
3.リポジトリ

に関する理解はひとまずとして、pushする事すら難しい方に向けて内容ですね。
ひとまずここら辺ができてから、細い部分など各人ググればどうにかなるよ

$ カレントディレクトリ(現在のフォルダ階層にいるよ)
$ mkdir "作りたいフォルダ名(ディレクトリとも言うよ)"
$ cd "作りたいフォルダ名" 
$ touch "作りたいファイル名"(touchコマンドでファイルが作れるよ)
$ ls (lsコマンドでファイルが作れたのかを確認)
$ github.comで新しいリポジトリを作成する(今回はfdsafdsa)
$ git init
$ git add README.md
$ git commit -m "first commit"(-mオプションは必要だから忘れない)
$ git remote add origin https://github.com/tommottom/fdsafdas.git
$ git push -u origin master
1
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
1
1