infoMore 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 を押下
-
Repository name を入力
-
Create repository を押下
-
プロジェクト完成!!
3. リモートリポジトリを登録
terminal
% git remote add origin https://github.com/YOUR-GITHUB-USERNAME/hoge-project.git
4. コミット ~ プッシュ
- test.txtを作成しコミット、プッシュの確認
terminal
% git add test.txt
% git commit -m "first commit"
% git push -u origin main
5. 最後にGitHubの画面で確認してみる
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up