GitHubに関する参考サイト
サルでもわかるGit入門 〜バージョン管理を使いこなそう〜 | どこでもプロジェクト管理バックログ
git status git add . git commit -m "comment" git push -u <name> master
チケット駆動開発
- github上でissueを作成する
- トピックブランチを作成する
git checkout -b issues/#?
- 開発する
- リモートリポジトリにpushする
git add . git commit -m "comments" git push hoge issues/#?
git checkout master git pull --prune
- ローカルのブランチを削除する
git branch -d issues/#?
ファイルの削除
- ファイルの削除
git rm hoge.py
- コミット情報は削除するがローカルのファイルは残す
git rm --cached hoge.py
- ディレクトリごと削除
git rm -r --cached foo