Working with git in graphical mode in windows

Asked

Viewed 2,666 times

3

I have git running on an internal network.
I want to allow one of the stations to work on that server.
I already managed the key on that station and added it to the server where git is.
I already created the repository on the server and now I need this station to send the whole project to this new repository (which is empty).
The station already has github installed. (this station is windows)
How to do the git init in a folder that is inside Windows/wamp/projeto?
I opened git Gui on this windows machine but it doesn’t show me the option to point to the remote repository. In my case, the repository is on [email protected]:~/projects/myproject.git

  • 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.

  • The question is related to an existing folder, with an existing and preferred project using git Gui.

  • 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?

  • 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.

  • 1

    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...

1 answer

5


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: Abrir repositorio

2 - Use the Remote menu -> Add Add Remoto

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. Adicionando Remoto

4 - Then send your copy to the server. Push

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. SVN Checkout

2 - Use your repository’s Https url url

3 - Check out. Note that svn will create a trunk folder and branches. Your master will be in the trunk'

diretorios

4 - Play the contents of your repository in the directory you created and commit. commit

I hope I’ve helped.

  • Edgar, in the comments I think I made it clear that the need for the company I work for would be a graphic solution. The form you presented I already know. Anyway, thank you.

  • @Rafaelsoufraz I edited my answer and put how it is done in graphic mode.

  • I didn’t know Tortoise worked with git. Thank you very much for your attention and explanatory response.

  • @Rafaelsoufraz It’s not the best of worlds. I use it at work because of the proxy. At home I use Rabbitvcs. There’s also Giteye, from the collab.net, he’s pretty cool.

  • There is the Tortoisegit also, I believe it is more suitable than the Tortoisesvn, alias there is port from Tortoisesvn to Mercurial and CVS, maybe even to some other that I do not know

  • @Very interesting, I’ll try it. The most important thing in this case is to understand how Git works. Knowing this the person will be able to use by command line or Gui smoothly.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.