摘要:
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. 阅读全文
摘要:
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/ 阅读全文