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?

GitHub CLI メモ

Last updated at Posted at 2025-02-06

GitHubをCLIで使う時のメモ

今回は私がGitHubのCLIに慣れていきたいと思うので書きました。

最新にする

git pull

変更の確認

git fetch

作業中のブランチを最新にする

mainブランチに行く

git checkout main

最新状態にする

git fetch
git pull

作業中のブランチに戻る

git checkout test #testというブランチ名に移動する

最新状態を適応

git merge origin

接続されているリモートリポジトリを確認する

git remote -v

接続されているリモートリポジトリを変更する

git remote set-url origin #新しいURL SSHで指定する

接続されているリモートリポジトリとの連携を消す(デフォルトはoriginだがリポジトリ名の時もある)

git remote remove origin
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?