github超入門

  • githubにあげるときの手順
    1. github上でnew repositoryを行い新規レポジトリを作成
    2. ローカルで同名のディレクトリを作成
    3. git initでgitを生成

ラッキング中のファイルがaddする前で、それを元に戻したい場合は、

git checkout .

http://blog.scimpr.com/2012/09/01/git%E3%81%A7%E5%88%A5%E3%83%96%E3%83%A9%E3%83%B3%E3%83%81%E3%81%A7%E4%BD%9C%E6%88%90%E3%81%97%E3%81%9Fadd%E3%81%99%E3%82%8B%E5%89%8D%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E5%89%8A/

 


git remote add origin git@github.com:ユーザー名/リポジトリ名.git

githubに接続