WindowsSetting Windows SourceTree Bitbucket 2019年 4月 26日
電気電子工学コースでは、Bitbucket のアカウントを作成し、Git を使ったペアプログラミング、チームプログラミングに活用している。 また、卒業研究などにおいてもプロジェクト遂行や論文執筆のために、Git は多く活躍している。 Git のクライアントとしては、Bitbucket を運用している Atlassian が配布している SourceTree が有名である。 本学では、Bitbucket とのやり取りに公開鍵暗号方式を用いるため、使い始めにあたって公開鍵の設定が必要である。 macOS は SourceTree をインストールするだけで、簡単に使い始められる。 一方、Windows 版はちょっと面倒な作業が必要となるので、ここで説明しておく。 以下、手順を示す。
ここで例として Bitbucket にある 電気電子工学コースの実験実習レポートスタイルファイルのリポジトリ をクローンしてみる。
PS C:\Windows\system32> cinst git --yes
Chocolatey v0.10.13
Installing the following packages:
git
By installing you accept licenses for the packages.
Progress: Downloading git.install 2.21.0... 100%
Progress: Downloading git 2.21.0... 100%
git.install v2.21.0 [Approved]
git.install package files install completed. Performing other installation steps.
Using Git LFS
Installing 64-bit git.install...
git.install has been installed.
git.install installed to 'C:\Program Files\Git'
git.install can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv ).
The install of git.install was successful.
Software installed to 'C:\Program Files\Git'
git v2.21.0 [Approved]
git package files install completed. Performing other installation steps.
The install of git was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).