I currently use svn at work.
Our setup is: everyone has a working copy and we commit to a svn server served by apache2.
So I commit changed, the other update, and everyone can work on the copy as they wish.
So it's pretty easy to deploy.
But now, I'd like to do the same thing but with Git. Would it be possible?
I'd like to have a git repo on my main server, develop at home, commit changes to the server, etc.
Thanks for your help
Git is decentralized, or distributed. This means that to edit, developers download the source code onto their local machines to work and make edits, while Perforce is centralized, meaning all developers are making edits to one master branch kept on a server and accessible to all team members.
Git provides tools to interact with the central repository using your local repository. Git provides git push command to make changes in the central repository. This command will add the most recent commits done on the local repository into the central repository.
The Centralized Workflow is a great Git workflow for teams transitioning from SVN. Like Subversion, the Centralized Workflow uses a central repository to serve as the single point-of-entry for all changes to the project.
What are the benefits of using version control? Having a GitHub repo makes it easy for you to keep track of collaborative and personal projects - all files necessary for certain analyses can be held together and people can add in their code, graphs, etc. as the projects develop.
Git - SVN Crash Course
Especially this is of interest for a starter
git init
git add
git clone git://...
git pull
git fetch
git push
Then check the rest of the documentation on the git site
Git documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With