Git Pratices - sandeepvalapi/DevOps GitHub Wiki

Git best practices

  • If you are facing problems in pull due to lock ref, then use below command
    git gc --prune=now
  • Git always recommends clean branching model. Always keep your branch update before you push any changes.
   git pull
   git commit
   git push
  • Make sure you write proper commit messages before comitting code as it helps reviewer understand the reason of the commit.