Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git for Web Development (procedure method)

I am wondering what is your procedure method of a web development using Git?

  1. When you finish coding, do you just overwrite the files on the FTP to the live server?

  2. How does git handle number of version of same project? like v1, v1.5, etc

  3. Let say 2 people working on the project locally at work (same office), how do you work together? Do I have to keep asking them to give me a source ready (save on USB?) for merge?

  4. Can two people work on the same project on the same server? Wouldn't this be easier than question 3?

like image 910
user622378 Avatar asked May 03 '11 22:05

user622378


People also ask

How is Git used in web development?

Overview. Git is an excellent resource to use for web development as it allows you to streamline live updates in addition to providing a copy of your website files. For example, you can create your website on your home computer and use Git to push a copy of those files to your DreamHost web server.

Do you need Git for web development?

Summary. Nowadays, Git is a must-learn tool for web development, since most of the time you'll be collaborating with others to create the best project you can. In this article, we've discussed some important reasons to use Git in your projects, and we've shown you the basic workflow of collaborating in a Git repo.

What is Git and GitHub in web development?

Git is an example of a VCS, and GitHub is a web site + infrastructure that provides a Git server plus a number of really useful tools for working with git repositories individually or in teams, such as reporting issues with the code, reviewing tools, project management features such as assigning tasks and task statuses ...


1 Answers

The idea behind git is that it actually takes care of all that for you.

  1. When you write code you commit your code and you can push it out to the server. Git tracks the changes so its easy to rollback to a previous version.
  2. It tracks the versions of files as they change so you can easily undo any changes that was made in the past, see tags for more details.
  3. NO. You can push your changes to the server and the other person can pull these changes. Some merging will have to occur but its quite easy with git. No need to transfer files from one dev to another. Branching and merging is discussed here.
  4. Yes. Thats the idea.

To better understand the concepts behind a distributed version control system you can read this tutorial by Joel Spolsky. It is about Mercurial, but you will find the concepts very similar and this is probably the best tutorial written about this subject on the web.

like image 158
Vincent Ramdhanie Avatar answered Oct 13 '22 15:10

Vincent Ramdhanie