If you already have the repository on your computer you can create a remote that points to remote server (your windows server in case) and then give a push. In this way:
Using the console
- (Optional) On the console, use the command git remote -v. This will show all the URL from where you can give a clone. Note that you will see a line called orign which follows a different pattern, all hosts that follow this pattern are hosts to which you can submit updates;
- Use the command git remote add [server-name] [url], where [server-name] is just an alias to facilitate identification of your server. Use the name you find most convenient;
- Finally, use the command git push [server-name] [branch], where server-name is the remote server alias you chose in the previous step and [branch] is the revision you want to send (use master if you want to send the root).
You can read more about remotes in this link: http://git-scm.com/book/pt-br/Git-Essencial-Trabalhando-com-Remotos
Upgrade - Work with graphic mode:
Using the Git-Gui
1 - Open your local repository:
2 - Use the Remote menu -> Add
3 - Name the Remote and then enter the SSH URL. Remember to set up your git-Gui and enter your login credentials. Check the 'Do nothing' option (this just in case you want to send a first revision to the server) and then click Add.
4 - Then send your copy to the server.
Using the SVN Tortoise
You can use Tortoise svn to work with Git (I use it on Github, I don’t know if it’ll work in your case, but try)
1 - In an empty directory, use svn checkout.
2 - Use your repository’s Https url
3 - Check out. Note that svn will create a trunk folder and branches. Your master will be in the trunk'
4 - Play the contents of your repository in the directory you created and commit.
I hope I’ve helped.
As far as I know, the easiest way would be to make a git clone of your project that is already on the server causing you to create an empty but versioned directory. After that you pass the files you already have to this versioned directory makes a commit and push.
– Adriano Leal
The question is related to an existing folder, with an existing and preferred project using git Gui.
– Rafael Soufraz
Okay, I may have misunderstood, but from what I understand you have the entire project on a network machine, however, this project is not yet versioned with git. You have done the whole process of creating the repository on the server and still have to get the machine files containing the project to be versioned in the repository created, correct?
– Adriano Leal
Exactly. And preferably, I wanted to do this in graphic mode. Because I will need to instruct the developers to do the same procedure. And there is still a certain resistance in the company’s text mode.
– Rafael Soufraz
Right. So if you put all your files inside the directory that was created with the git clone, after inside the directory run a git Gui, the option to perform a commit of the files not versioned and changed, making the commit is missing the push to effectively leave it on the server. So the next time someone clone the project all files will come with the directory, and if changes are made and need to be sent to the server just repeat the process of git Gui, commit and push. Should work...
– Adriano Leal