If you are sharing a project which would be edited both in Windows and Unix systems, then its best to set the New text file line delimiter settings for eclipse to Unix. To do this Open Eclipse preferences from Windows->Preferences. Navigate to General -> Workspace and then for the “New text file line delimiter” choose radio button “Other” and from the list select “Unix”. Also since eclipse by default is not using file encoding UTF-8, its best to set that also while you are doing this. Under “Text file encoding” choose radio button “Other” and from the list select “UTF-8″.
Archive for the 'Git' Category
Eclipse CRLF and File Encoding
July 21, 2011Git GUI checkout single file command
January 31, 2011To checkout a single file using Git GUI, go to the Tools menu and add the following command
git checkout $REVISION -- $FILENAME
Now select the file to checkout and run the command .
See Stack overflow post about this here – http://stackoverflow.com/questions/1507300/git-checkout-revision-of-a-file-in-git-gui
Review Board – Code Review tool
September 9, 2010Found this Open source code review tool http://www.reviewboard.org/screenshots/
through this Yelp Engineering blog post – http://engineeringblog.yelp.com/2010/09/push-it.html
I didn’t try it but the users list http://www.reviewboard.org/users/ shows that it should be pretty good, and also it supports Git version control
Git fatal: remote end hung up
July 9, 2010The most common reason for “Git fatal: remote end hung up” is due to wrong ssh authentication or some other SSH issue.
This Stack overflow thread discusses and gives solution for this issue Git fatal: remote end hung up – Stack Overflow
I got this error because while installing Git in Windows , I choose to use Plink.exe because I had it already installed, but it turned out this option works with Pageant loaded with ssh keys. But I was not using ssh with keys. To solve this I changed GIT_SSH environment variable in windows from “C:\Program Files (x86)\Putty\bin\Plink.exe” to “C:\Program Files (x86)\Git\bin\ssh.exe”
Git pull without password
June 11, 2010I wanted to avoid Git asking for password every time I do
git pull
Since Git client was using SSH for communicating with the Git server, the solution was to configure SSH between the Git client machine and Git server machine to be done without password. I found this web page with clear explanation of how to do this.
Installing Git in CentOS using yum
June 11, 2010I wanted to install Git in CentOS release 5.3, but running command
yum install Git
did not work. Then I found this blog which gave instruction on how to do it.
When does Git merge
June 2, 2010Git unlike SVN or CVS, was not auto merging when doing “git pull”. I couldn’t understand why it was not doing it, also I was too lazy to look into Git documentation to find out the reason. Somehow I found out that after doing “git commit” and then doing “git pull” made Git to auto merge.
