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 1 year has passed since last update.

Gitコマンド逆引きメモ

Posted at

Gitコマンドの逆引きメモです。「やりたいこと→コマンド」という形にしています。最後に公式ドキュメントへのリンクを付けてますので合わせて参考にしてください。


現在のリモートリポジトリを確認する
$ git remote -v

リモートリポジトリ(origin)を変更する
$ git remote set-url origin <URL>

ローカルブランチの名前を変更する
masterをmainに変更する
$ git branch -m master main

参考

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?