Working with git in graphical mode on windows

3

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

    
asked by anonymous 08.08.2014 / 17:02

1 answer

5

If you already have the repository on your computer you can create a remote that points to the remote server (your windows server in case) and then give push . This way:

Using the console

  • (Optional) On the console, use the git remote -v command. This will show all the URLs from where you can give a clone. Note that you will see a line named orign that follows a different pattern, all hosts that follow this pattern are hosts to which you can submit updates;
  • Use the git remote add [url] command, where [server-name] is just an alias to make it easier to identify your server. Use the name you find most convenient;
  • Finally, use the git push command, where server-name is the alias of the remote server you chose in the previous step, and [branch] is the you want to send (use master if you want to send the root).

You can read more about remotes at this link: link

Update - Work with graphical mode:

Using Git-Gui

1 - Open your local repository:

2-UsetheRemotemenu->Add

3 - Name the Remote and then place the SSH URL. Remember to configure your git-gui and enter your access credentials. Check 'Do nothing' (This is just in case you want to send a first revision to the server) and then click Add.

4-Thensendyourcopytotheserver.

Using Tortoise SVN

It is possible to use tortoise svn to work with Git (I use it in Github, I do not know if it will work in your case, but try)

1 - In an empty directory, use svn checkout.

2-UsetheHttpsurlfromyourrepository

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

4-Throwthecontentsofyourrepositoryintothedirectoryyoucreatedandcommit.

I hope I have helped.

    
11.08.2014 / 18:49