Monthly Archives: สิงหาคม 2014

hack css ie10

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .your_classname { padding-right: 13px; } }

Posted in knowledge | Leave a comment

tortoisegit add tag for versioning

http://stackoverflow.com/questions/6158598/how-to-use-tags-for-versioning-in-git-gui If you want to add tag with Tortoise GIT: show log right click on commit and create tag at this version push with checked include tags If you want to remove tag via Tortoise GIT: show log right click … Continue reading

Posted in git, knowledge | Leave a comment

git ignore some files during a merge

http://stackoverflow.com/questions/3868491/git-ignore-some-files-during-a-merge-keep-some-files-restricted-to-one-branch Let’s say you want to exclude the file config.php On branch A: Create a file named ‘.gitattributes’ in the same dir, with this line: config.php merge=ours. This tells git what strategy to use when mergin the file. In this … Continue reading

Posted in git, knowledge | Leave a comment

git rollback by SHA hash

http://stackoverflow.com/questions/1064361/unable-to-show-a-git-tree-in-terminal git log branch_name http://stackoverflow.com/questions/1895059/revert-to-a-commit-by-a-sha-hash-in-git # Reset the index to the desired tree git reset 56e05fced # Update working copy to reflect the new commit git reset –hard # Push force to update rollback to remote git push -f ex. … Continue reading

Posted in git, knowledge | Leave a comment

tortoiseGit rollback

สมมติเรามีการ merge branch ขึ้น remote server แล้วเกิด Bug อะไรซักอย่าง แล้วเราตัดสินใจจะ rollback ใช้ชุด code version ก่อนหน้านี้ ให้ทำดังนี้(อ่านต่อ..)

Posted in git, knowledge | Leave a comment