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 pull にorigin masterを付けなくても良い。

Posted at

やり方

% git branch -u origin/local_branch local_branch

このコマンドでorigin/local_branchlocal_branchを関連付けました。

確認


% git branch -vv
  60-first-fax   bbe32a0 wip
  auth0-controle 2da339c wip
* local_branch            8b31651 [origin/local_branch] Merge pull request #66 from akuraya/add-README

% git pull
Already up to date.

解除する場合

origin/local_branchlocal_branchの関連付けを解除します。

解除コマンド


git branch --unset-upstream local_branch

確認


% git branch -vv
  60-first-fax   bbe32a0 wip
  auth0-controle 2da339c wip
* local_branch            8b31651 Merge pull request #66 from *****/add-README

4行目から[origin/local_branch]が消えていることが分かります。

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?