Follow below steps:Step-1:
Open Visual Studio 2010, and choose File -> New Project. And then Select SharePoint -> 2010 -> Module. Give a Name to the project DeployjQuery, and click OK. Remember to select .Net framework version 3.5 as shown in the figure below:

Step-2:
In the next step select the local deployment URL and select "Deploy as a sandboxed solution".

Step-3:
Now if you will open the solution explorer it should be look like below:

Step-4:
In the next step Rename the Module1 module to Assets, and delete the Sample.txt file. Remember after doing this the Elements.xml file contains also changed accordingly.

Step-5:
Now copy the jQuery files and put it inside the Assets folder. Now the elements.xml file will change automatically but you need to add URL attribute to the Module like below:

Now if you deploy and check the Site Assets folder the jQuery files should be there.

But before deployment it is good to give a good name to the feature.

So expand the Features folder and rename Feature1 to jQueryFeature and then double click on jQueryFeature.feature. From there change the Title and Description and also you can set the Scope of the feature.

Now you can deploy the solution. Once the deployment is over the jQuery files can be browse like below:
http://URL/SiteAssets/DeployjQuery/jquery-1.6.2.min.js

If you want to deploye the wsp through powershell or stsadm then follow this article.

Google+ Followers

Site Visit Count

Declaration:

This is a personal blogging and tutorial website. The opinions expressed here represent my own and not those of my employer or anyone else. If you have any questions or concerns please e-mail me at fewlines4biju@gmail.com