Skip to content
Hajime Aizawa edited this page Apr 11, 2015 · 7 revisions

git操作のTips

  • git tag

[tag追加]
$ git tag 1.0.0 // tagを付ける
$ git push origin --tags // remoteにpush

[tag削除]
$ git tag -d 1.0.0 // tagを削除
$ git push origin :refs/tags/1.0.0 // remoteから削除

  • git remote

[originの設定]
$ git remote rm origin // 設定削除
$ git remote add origin https://github.com/xxxx.git
$ git push -u origin master

  • git config

    $ git config --global user.name "taro yamada"
    $ git config --global user.email [email protected]

  • fork元をups という名前で branchに追加
    $ git remote add ups https://github.com/o3project/odenos.git
    $ git fetch ups
    $ git branch -a // 確認

  • proxy設定 $ git config --global http.proxy [host_ip]:[port]

  • tag削除(ローカル)
    $ git branch -d branch_name

  • tag削除(リモート)
    $ git push origin :branch_name

Clone this wiki locally