all. I am very, very new to Git. Places I've worked at usually use TFS, and I want to learn some Git.

I don't even know if I have it set up correctly, but I do have the VS2017 Git Add-on. I've committed some code, and a project. The problem is, I added a couple of folders to my project, but I can't figure out how to check them into my repository. Nor can I figure out how to check in the DLLs that are in the project.

I'm very, very new to Git, so how would I do something like this? I've tried right-clicking on the folder, and looking for some sort of option to add it, so that I can check it in, but I haven't been successful finding anything.

  • 1
    You must have at least one file in the folder. Otherwise it cannot be added. – Aulis Ronkainen Apr 9 '19 at 19:02

To add a file/folder, use git add command. Then use git commit to commit to your local repository. If you want to send it to the base (to be available to other users, for instance), you should git push your changes.

Remember to, before adding the files, to create a .gitignore file in order to avoid persisting binaries and auto-generated things (dlls, exe, etc) - these shouldn't be on repository.

Maybe you should search for some tutorials, documentations. Maybe this would help you improve your knowledge on git.

  • This was the suggestion I used, so I am marking it as the answer. But it brings me to another question. When I tried to pull down the solution from Git (using Visual Studio) it caused one of my projects to not load, and NuGet to show some missing dependencies in my testing project. How do I sync those up correctly, too? – M1976 Apr 10 '19 at 22:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.