DEV Community

kamula
kamula

Posted on

Git tutorial

git
Git is a distributed version control and source code management system with an emphasis on speed.
Git allows developers to work simultaneously, maintain code version and prevents overwriting each other's changes.

Git Advantages

  • Free and open source
  • Fast and small
  • Easy to create branches
  • No need for powerful hardware

Git Workflow

  1. Modify a file in your working directory
  2. Add file to staging area git add 'filename'
  3. Commit the changes git commit -m 'commit message'
  4. Push the changes into your remote repository git push origin 'branch name'

Top comments (0)