Mint.rb | 5 years ago | ||
README.md | 5 years ago |
Gitの環境設定をする (初回のみ)
git config --global user.name "your name" git config --global user.email "c11xxxx@x.koeki-u.ac.jp" git config --global push.default simple (どうやらver.2.1からデフォルトらしい)
Gitの環境設定値を確認する
git config --list
git init
git clone https://www.yatex.org/gitbucket/HiroseLabo./git_practice_2019.git
クローンした作業ディレクトリに移動する
cd git_practice_2019
リポジトリからの更新をpullする
git pull
編集作業をする(emacs・vi等)
新規作成したものをaddする (新規ファイル作成時の1度のみ)
git add ファイル名
commit messageを追加してcommitする
git commit -m "更新内容"
4と5を繰り返していき、最終的にローカルリポジトリの更新をリモートリポジトリにpushする
git push
git pull git merge