Return to Tech/infra

Git


Initialize config
$ git config --global user.email "email-addr"
$ git config --global user.name "user-name"


リモートリポジトリを追加 hogehogeという名前でhttps://hogehoge@fugahoge.azurewebsites.net:443/hogehoge.gitを登録 $ git remote add hogehoge https://hogehoge@fugahoge.azurewebsites.net:443/hogehoge.git view remote $ git remote
状態確認 $ git status
コミット対象のファイルを追加 $ git add filename
コミット $ git commit -m "initial commit 2016/??/??"
リポジトリへプッシュ - ローカルの状態をリモートリポジトリに反映する $ git push hogehoge master
リポジトリからプル - リポジトリから最新の状態を取得する $ git pull
clone $ git clone https://hogehoge@fugahoge.azurewebsites.net:443/hogehoge.git
削除 $ git rm filename

Return to Tech/infra