github再入門

某所の講習会でファイルの共有を(バックアップで)やっておく必要が出てきたので、新しいレポジトリを作成する必要が。完全に忘れたので、一番最初から。 [shell] git config --global user.name "Your name" git config --global user.email "Your email address" git config --global core.autocrlf input git config --global core.sefecrlf true [/shell] そして、レポジトリに入れたいファイル群をadd&commit。 [shell] git init git add . git commit -m "first commit" [/shell] そして(ここからが完全に忘れていたポイントなのだが)、githubにログインしてRepositoriesタブからNewで新しいレポジトリを作成。しかるのちに表示されるコードを参考にして、 [shell] git remote add origin https://github.com/bonohu/AJACS47.git git push -u origin master [/shell] これでgithubのウェブサイトからファイル群が見れるし [shell] git clone https://github.com/bonohu/AJACS47.git [/shell] でファイル群をcloneできる。便利だ。今後の講習会で多用しよう。


Written by bonohu in misc on 水 06 8月 2014.