Visual Studio Onlineに登録してgitでコードをpushしてみた


MicrosoftのVisual Studio Onlineの初期プランは結構豪勢なことをやってるという話を聞いた。

調べてみると確かになかなかなことに・・・

Visual Studio Onlineでできること
Visual Studio Online の価格

Visual Studio Onlineに登録すると、「Basic 5アカウント分の利用権」と「gitもしくはMicrosoft Team Foundation バージョン管理 (TFVC) のオンラインレポジトリ」を利用できるというもの

gitで、というのは面白い、ということで早速登録してみた。

登録後、プロジェクトをgitで作成。

Linuxからgitでpushするためには、「My Profile」nの「CREDENTIALS」にて「ALTERNATE AUTHENTICATION CREDENTIALS」を設定する必要あり。
参考「Git: Use command prompt」と「Share your Eclipse projects

この際、パスワードのセキュリティ要件が若干きつめな設定なので注意。
「The password provided does not meet the minimum security requirements. The password must have at least 8 characters and contain at least three of the following: uppercase letters, lowercase letters, numbers, and symbols.」

[osakanataro@niselog narou]$ git remote add origin https://~.visualstudio.com/DefaultCollection/_git/narou2epub
[osakanataro@niselog narou]$ git push -u origin --all
Username for '~.visualstudio.com':
Password for '~.visualstudio.com':
Counting objects: 14282, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (13753/13753), done.
Writing objects: 100% (14282/14282), 77.17 MiB | 900 KiB/s, done.
Total 14282 (delta 601), reused 0 (delta 0)
remote: Analyzing objects (14282/14282) (100661 ms)
remote: Storing pack file and index...  done (13364 ms)
To https://~.visualstudio.com/DefaultCollection/_git/narou2epub
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
[osakanataro@niselog narou]$

push完了後、webを確認

gitの更新履歴もきちんと日本語が文字化けせずに登録できている。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください