Web Developer

Loading

Git

Git is a free, open-source version control system (VCS) that’s widely used in web development: 
  • Distributed
    Each developer has a local copy of the code repository’s full history. This allows developers to work offline or remotely. 
     
     
  • Records changes
    Developers can record every change to the source code, making it easy to revert to older versions. 
     
     
  • Performance
    Git is designed for performance when committing changes, branching, merging, and comparing past versions. 
     
     
  • Works with GitHub
    GitHub is a website and infrastructure that provides a Git server and tools for working with Git repositories. These tools include: 
     
     
    • Reporting issues with the code 
       
       
    • Reviewing tools 
       
       
    • Project management features 
       
       
To push live changes to a website using Git, you can:
  1. Add a post-receive hook
  2. Log into the web server via SSH
  3. Make sure you’re in the remote repository directory
  4. Run nano and create a file named post-receive
  5. Add code to the file
  6. Save and close the file
  7. Give the file execute rights