目次
- windowsの設定(win7)
- コマンドメモ
1. Windowsでの設定まとめ
⇒sourcetreeでgitの操作 & bakclogのgitリポジトリを使用して課題と連携させる
参考:
■サルでもわかるGit入門
http://www.backlog.jp/git-guide/
1-1 ツールのインストール
Git bash
https://git-scm.com/TortoiseGit
https://tortoisegit.org/SourceTree
https://ja.atlassian.com/software/sourcetree/overview/
1-2 windowsの設定(win7)
パスを繋げる
参考:
http://next.matrix.jp/config-path-win7.html
システム環境変数:
⇒Path
C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\bin;
1-3 sourcetreeでbacklogのブランチをクローンする
SSH接続したいので、事前にputtyの鍵登録をしておく。
1.puttyのインストール
2.鍵をつくる
3.公開鍵をbacklogに登録。
4.SSHリポジトリをGitページから取得して、sourcetreeにてクローン。
5.コミットメッセージに課題IDを入れることで課題に紐づけられる。
2. コマンドメモ
git branch
git checkout -b ブランチ名
git status
git log
git add .
git commit -am "コメント"
git push origin ブランチ名
git pull origin ブランチ名