0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

個人でGitを使うときのコマンド

Last updated at Posted at 2020-11-27

この記事について

  • 完全版私用メモ
  • ターミナルを使いまくる人ようかな?

コマンド一覧

ローカルにワークツリーを作る
>$ git init
>$ git config --global user.name [ユーザ名]
>$ git config --global user.email [メールアドレス]
>$ git add .
>$ git commit -F- <<EOM
#初回のみ
>$ git branch -M main
>$ git remote add origin [git path]
>$ git push -u origin main

説明(あまり使われないだろう箇所のみ)

  • git commit -F- <<EOM
    • コミット文を複数行打ち込むことができる
  • 初回のみ以下の3行
    • ブランチを作成してプッシュする
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?