0
0

GitHub 保存

Last updated at Posted at 2024-09-27

Gitリポジトリの初期設定を自動でやってくれるコマンド

git init

修正したファイルの状態を見る

git status 

下書き保存

git add .

メッセージ付きでローカルのgitに保存する

git commit -m "feat"

スクリーンショット 2024-09-27 23.22.28.png

スクリーンショット 2024-09-27 23.23.28.png

スクリーンショット 2024-09-27 23.24.11.png

remote add origin https://github.com/yukimarupi/my-app.git
yuumiiida@Mac my-app % git remote -v                                                 
origin  https://github.com/yukimarupi/my-app.git (fetch)
origin  https://github.com/yukimarupi/my-app.git (push)

GitHubにローカルのGitの内容をアップロードする

git push origin main
git push origin main   

Enumerating objects: 22, done.
Counting objects: 100% (22/22), done.
Delta compression using up to 8 threads
Compressing objects: 100% (20/20), done.
Writing objects: 100% (22/22), 167.80 KiB | 1.10 MiB/s, done.
Total 22 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), done.
To github.com:yukimarupi/my-app.git
 * [new branch]      main -> main

done!

スクリーンショット 2024-09-27 23.32.58.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