0
0

Git リポジトリを作ったときに大体実行するコマンドたち

Posted at

概要

リポジトリを作ったときに大体実行するコマンドたちを簡単にまとめます。(筆者の場合です。)

詳細

実行する順番に羅列しておく。

git init
git config --local user.name '自分の名前'
git config --local user.email '自分のメールアドレス'
git branch -M main
git commit --allow-empty -m "first commit"
git remote add origin リモートリポジトリアドレス
git push -u origin main
touch README.md
git add README.md
git commit -m "READMEの追加"
git push origin main

このあとはREDMEを記入してコミットしたり、その他のファイルをコミットしたりする。

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