html,CSSフレームわーくを作るDay1
超久々に更新。
作業ログ1
自宅の環境は、egit経由しでしかgitにプッシュできなかったので、
git bashも使えるようにした。
jsの開発はとりあえず、firebugで(良い方法知らないだけ)
CSSはBootstrapを使用することにした。
jsをHTMLの外に記述する方法は知らなかったけど、
bootstrapのマネをしたら動いた。
デフォルトだど、
C:\Users\ユーザー名\プロジェクト名にファイルを追加・変更して、
git add フォルダ名
git commit -m 'コメント'
git remote add オプション git@github.com:usernema/test.git
git push origin master
ローカルのファイルを指定して、コミットして、プッシュ。
で、今日のはまりポイントはgit bashでpushするときのエラー。
$ git push
To git@github.com:michitakaiida/UI.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:michitakaiida/UI.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
いままで、egitでエクリプス経由でpushしたことしかなかったから、はまった。
-
- forceオプションをつけてやることで強制的にpushできるらしく
git push origin master --force
あ、できた。
原因の理解はまた後日。
とりあえず、ソーシャルコーディングでびゅ。
git://github.com/michitakaiida/UI.git
Be,Open!!