LoginSignup
0
0

More than 1 year has passed since last update.

Gitでプロジェクト作成(GitHub)

Last updated at Posted at 2023-04-07

1. 作業用ディレクトリを作成

terminal
% cd
% mkdir hoge-project
% cd hoge-project
% git init

2. GitHubの画面からリモートリポジトリを作成

  • New を押下
    image.png

  • Repository name を入力
    image.png

  • Create repository を押下
    image.png

  • プロジェクト完成!!
    image.png

3. リモートリポジトリを登録

terminal
% git remote add origin https://github.com/YOUR-GITHUB-USERNAME/hoge-project.git

4. コミット ~ プッシュ

  • test.txtを作成しコミット、プッシュの確認
    image.png
terminal
% git add test.txt
% git commit -m "first commit"
% git push -u origin main

5. 最後にGitHubの画面で確認してみる

image.png

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