How to add dll files to Git Repository
Asked Answered
T

5

5

I'm using bitbucket to host my git repository. I've added a new folder called ExtLibs and added bunch of dlls. However they do not show up in SourceTree when I try to check in those files.

How do I add a folder with (dll) files to repo?

I'm using .gitignore from here (c#/VS2013)

enter image description here

Triumphant answered 9/5, 2016 at 18:52 Comment(2)
When you add a new file to Git you need to tell Git to start tracking it. SourceTree should list the new files you added under "unstaged files".Tijuanatike
how do i tell it?. I've created a new folder /ExtLibs and copied some dll into it. But no changes show up in SourceTree to commit. SourceTree doens't track that folder or files inside itTriumphant
T
1

When you add new files to Git, you have to tell it to start tracking the new files. This can be done by using the git add command.

In your case SourceTree should detect when new files are added. The new files will be shown in the "Unstaged files" pane. You can toggle the pane if you can't see it.

enter image description here

Tijuanatike answered 9/5, 2016 at 19:33 Comment(1)
ARRR! this drove me crazy. Thank you :)Triumphant
C
7

Using sourceTree : tools -> option, choose Git tab -> Edit file 'global ignore list' -> remove line *.dll

-- maybe it can help --

Cadaver answered 24/7, 2017 at 2:33 Comment(0)
W
4

I can't find a (C#/VS2013) .gitignore in the link you posted. But I guess the file you are using has a section that tells to ignore all DLL-files:

Something like *.dll or **\*.dll

You have to remove that part from your file. Or you can add: !ExtLibs\*.dll if you want to just add the DLLs in the ExtLibs-folder.

Wilkey answered 9/5, 2016 at 20:1 Comment(0)
L
2

Adding this answer to help someone like me. I wanted to add only one DLL.

Go to the folder. For example the packages folder for the Visual Studio C# project.

run this

git add <filename.dll> -f

Using this command, you are not required to update the .gitignore and it will not add other files.

Luzluzader answered 30/3, 2022 at 18:56 Comment(0)
T
1

When you add new files to Git, you have to tell it to start tracking the new files. This can be done by using the git add command.

In your case SourceTree should detect when new files are added. The new files will be shown in the "Unstaged files" pane. You can toggle the pane if you can't see it.

enter image description here

Tijuanatike answered 9/5, 2016 at 19:33 Comment(1)
ARRR! this drove me crazy. Thank you :)Triumphant
D
0

In SourceTree, from Show Only dropdown box, choose Ignored files option and it will list all files under Unstaged files section, select your file and click on Stage Selected button.

enter image description here

Then choose the Pending files option from Show Only dropdown box and your file will show there.

Dayledaylight answered 27/6, 2022 at 12:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.