2015/4/15 git演習作業手順 (1/3) 津⽥沼PC演習室3でログイン gitに対して⾃分の情報を設定し,確認 gitの設定と試用 プログラミング演習 例えば 1. $ git config□--global user.name □“Koudai Tarou” 2. $ git config □ --global user.email □“[email protected]” 3. $ git config □ --global □ push.default □ matching 4. $ git config □ --global --list 4/15/2015 Shigeru Fujita, Chiba Institute of Technology, JAPAN 2 git演習作業手順 (2/3) リモートリポジトリのクローンを作成 1. 自分のホーム領域以下で,自分の好きな場所に作業用 のディレクトリを作成し,そこへ移動 例えば $ cd $ mkdir □ git.works $ cd □ git.works $ git □ clone □ ssh://cstms/home/cs/fujita/2013/se $ ls se というディレクトリが出来る ファイルを編集 $ cd □ se $ ls Makefile helloworld.c $ make $ ./helloworld 4/15/2015 Shigeru Fujita, Chiba Institute of Technology, JAPAN 4 1 2015/4/15 git演習作業手順 (3/3) • (演習の進行に従って、ファイルが増える) • リポジトリ上の新しい変更を取り込むために $ cd $ cd □ git.works/se $ git □ pull (リポジトリ上の新しいファイルが取得される) 2
© Copyright 2024 ExpyDoc