Unable to index file: Permission Denied error in git add command

While working on an application, I had to commit changes to local Git Repository. It was usual task and I started with following command,

git add –A

To surprise git add command gave me error as shown in image below. Error message was clear that to a particular file there was Permission denied.

clip_image002

Note: I was working on a MVC application which had local database attached. Name of database was MoviesRTM.mdf.

I tried to commit using Visual Studio 2013 as well. Here also I got same error as shown in image below,

clip_image004

This can be solved by two ways either shutting down IIS Express or restarting Visual Studio. I was using IIS Express to host MVC application. You can shut down IIS Express by right click on IIS Express and click on Exit from context menu.

clip_image006

If this option is not working then try restarting Visual Studio.

Note: Restarting Visual Studio or Shutting down IIS Express may worked in this scenario because permission denies error was on a database file (extension mdf). And database was locally created.

After shutting down I was able to run git add command successfully.

Happy coding.

Getting Started with Git and GitHub

 

 

Read complete article on Falafel Blog

Who is not talking about Git or GitHub? In one of our recent user group meetings, someone asked how many Pull Requests have you done so far in any of open source projects on GitHub. I realized many developers in the room were puzzled with the phrase Pull Request. In this post I will explain some basic Git terminology and explore basic Git commands which will help you get started with Git. In a later post I plan to show you how you can work with Git-based Source Control and Visual Studio 2013.

Let us start with understanding basic terminologies:

Repository

A Repository  is a space where projects reside. Repository can be on a local computer or at an online host like GitHub or Team Foundation Server (TFS). If you are working in project then a Repository is basic unit of working . It will contain all the files, images etc. needed for the project. It should always contains a readme file, which describes the project

Read complete article on Falafel Blog

Lenovo ThinkPad T440P: My next companion

image

A batsman grow with his bat, a writer grow with his pen and a programmer grow with his machine. I was my gifted my first desktop by my father back in year 2003. That was assembled desktop with following configurations,

Processor: Pentium 3 1.7 GHz ||RAM: 128 MB || Hard Disk: 40 GB || 17 inch monitor || Assembled

I wrote first program on that assembled desktop and since then have worked on different kinds of desktops and laptops. I have worked on Dell Latitude, Lenovo ThinkPad etc. but never own them. On Friday 9th May 2014, I bought new machine for me. After bit of research online, for me Lenovo ThinkPad T440P came as a best choice for this time. This is one of the best available in market at this given time.

clip_image002

First thing you will notice is, it is not very sophisticated machine. In look it is very raw and a feel is guaranteed when you type codes using its keyboard.

Configuration of this machine is as follows,

Processor: Intel i7, 4th Generation||RAM: 16 GB || Hard Disk: 500 GB || 14 inch display || l3 cache || Windows 8 professional || Lenovo

 

clip_image004

One of the best is its keyboard and supported 1366*768 resolution display. Due to 14 inch screen size it is small and light. If you are a frequent traveller, this is your machine.

clip_image006

This machine is available in Lenovo stores throughout India. Rather buying it online, I bought it from a Lenovo store in NCR. I am very excited for my new companion Lenovo, ThinkPad T440P. Now why I am waiting let’s start coding.