博文

目前显示的是 六月, 2013的博文

在GIT中找回丢失的commits

有时候我们commit了一些change在local repository中,但是不小心丢掉了这些commits. 比如说我们reset 到了origin/master, 这时候如何找回这些已经commit的东西,来挽回我们之前做的工作呢? 方法便是使用 git reflog 运行git reflog 我们可以看到我们执行过的git命令以及执行后的branch在哪个local revision. 找到需要的那个revision然后运行git reset --hard <revision> 我们就可以回到从前了。

Installing Eclipse Juno 4.2 in Ubuntu 12.04

Download it here http://www.eclipse.org/downloads/ Extract it Create desktop file eclipse.desktop in /user/share/applications with following properties [Desktop Entry] Name=Eclipse Type=Application Exec=/home/user/Tools/eclipse/eclipse Terminal=false Icon=/home/user/Tools/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE Name[en]=eclipse.desktop Copy the eclipse.desktop file to desktop You also need to make the file executable chmod -x filename