Git/Github 設定
参考
設定
~/.gitconfigを直接書き換えるか、git configを使う
git config --global user.name xxxxx git config --global user.email xxxxx git config --global core.editor emacs git config --global core.excludesfile ~/.gitignore #.gitignoreを作っておく git config --global alias.co checkout git config --global alias.st status git config --global alias.br branch git config --global alias.sb show-branch git config --global color.branch always git config --global color.diff always git config --global color.interactive always git config --global color.status always
確認は
git config --list git config {key} #ex. git config user.name
.gitignoreファイル
##### MAC ##### .DS_Store ##### Java/Android ##### # built application files *.apk *.ap_ # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties ##### eclipse settings ##### .classpath .project .settings/ .metadata/
Github
GitHub · Build software better, together.で登録して、リポジトリ作成
git clone <URL> #Githubからクローン work... #なんか作業する git add <file> #次のコミットに<file>を追加する git commit -m "message" #ローカルリポジトリにコミット git push #Githubにうp #git push origin master