GIT - How does this work?

Started by
2 comments, last by MaulingMonkey 13 years, 5 months ago
Hi there!
Today I tried to use the GIT version control system. But I'm having problems with the basic understanding...

My Szenario is the following:

I have a PC, a Notebook and a home server.
I created a GIT Repo and copied it to all three devices. Now I would like to use the home server as the main repo to wich I can synchronize from both computers (notebook & pc).

Question 1:
What is the right way to commit changes on a lokal repo to the one on the home server? Just copy the folder over there and overwrite stuff? I don't think so...

Question 2:
How can I get the current repo on the homeserver to my PC/Notebook?

There are some functions (using Tortoise GIT) like Sync and Push/Pull but I can't seem to specify the source and destination directories there (just URLs)...


HELP!! ;-)
Advertisement
Highly advisable that you read these pages:

http://progit.org/book/ch1-3.html

As for your question, if you want to add a changes to your git repo, you'd have commit changes to your local version, pull the master off the server, and merge the committed changes with the master. Then you push everything back to the server. Rinse and repeat for any other local machine.

You can either do this via command line, or use a GUI of some sort. Personally I use msysgit on Windows.
Latest project: Sideways Racing on the iPad
Huh, ok. Thanks :-)

Now I've got a repository on my local PC and my network storage.
But how can I update the remote-repository?

I tried the push command (passed 192.168.1.100/GitFolder as an argument), but git won't access my network storage :-(

Man, why is this so difficult?
Quote:Original post by VanKurt
I tried the push command (passed 192.168.1.100/GitFolder as an argument)

And, what, git's supposed to ssh in?
Or is it supposed to use the vanilla git protocol?
Wait, I know, https!

Try prepending file://

This topic is closed to new replies.

Advertisement