Skip to content

Instantly share code, notes, and snippets.

@hirokim
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save hirokim/66121f93f1928d48725d to your computer and use it in GitHub Desktop.

Select an option

Save hirokim/66121f93f1928d48725d to your computer and use it in GitHub Desktop.
忘れがちなGitコマンド
設定確認
$ git config -l
リモート登録
$ git remote add origin REMOTE_URL
リモート変更
$ git remote set-url origin [email protected]:foo/bar.git
リモートのタグの削除
$ git tag -d WRONG_TAG_NAME
$ git push origin :WRONG_TAG_NAME
リモートのブランチの削除
$ git checkout master
$ git branch -d WRONG_BRANCH_NAME
$ git push origin :WRONG_BRANCH_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment