摘要: http://stackoverflow.com/questions/1616957/how-do-you-roll-back-reset-a-git-repository-to-a-particular-commitgit reset --hard Notes:git resetwithout the--hardoption resets the commit history, but not the files. With the--hardoption the files in working tree are also reset. (credited user)If you wis. 阅读全文
posted @ 2013-12-23 14:15 Monn 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/4658606/import-existing-source-code-to-githubIf you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/ 阅读全文
posted @ 2013-12-23 14:08 Monn 阅读(276) 评论(0) 推荐(0) 编辑