Last active
August 29, 2015 14:07
-
-
Save hirokim/66121f93f1928d48725d to your computer and use it in GitHub Desktop.
忘れがちなGitコマンド
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 設定確認 | |
| $ 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