How do I upload an entire Visual Studio project(200 files) into GIT?
I don’t want to have to do one file at a time.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I do is, I start a repository in the working dir that I wanted to ad (Git -> Init from the context menu).
I go to ‘Git -> Diff’ (make sure ‘Show unversioned files’ and ‘Show whole tree’ are ticked).
I select all the files to be added at once (multiselect using ctrl-click or shift-click for contiguous region)). Right-click to add. The files are now displayed in the top part of the screen.
I usually take the effort to ignore or delete the remaining files. When you choose to ignore a file, you get the option to ignore the specific path or all files with the same extension. Click refresh button to see the effect of new ignores.
Hint
Finally, click the commit button, and you’re done (enter message and click ok).
Alternative:
If you have many projects like this to add, you’d drop into a shell (like git-bash):
Done