Setting up your own git server at home is easy enough. Once you have sshd running (or Remote Login enabled), your friends for interacting with the remote repository are:git clone username@machineIP:path
git remote add remoteRepoNickname username@machineIP:path
git push remoteRepoNickname branchName
git pull remoteRepoNickname branchName
I got started using Pragmatic Version Control Using Git. There's also an online book: Pro Git.
Above and beyond 'there is no server', the main thing I needed to get my head around was that git has the concept of 'staging' commits. For example:
git add filewill stagefile's deltas.git statuswill show you your staged changes.git commit -m 'comment'will then commit your staged changes.git push remoteRepoNickname masterthen pushes your committed changes to another machine.

0 comments:
Post a Comment