Personal experience on source code management(Git)

Understand Distributed Version Control System(VCS)/Software Configuration Management(SCM)

  1. fetch the updates from remote before you start coding or pushing your changes
  2. waiting until the command process(eg:check-out) finished itself in case of breaking the file system on the working directory
  3. double confirm on the merge conflict you have made

Check in your source code correctly and elegantly

  1. diff your changes before checking in your source code
  2. check in your updates based on the feature you implemented or bug you fixed
  3. commit your code with clear message(https://chris.beams.io/posts/git-commit/)
  4. keep an eye on the output message from git command
  5. commit with --amend option or other best practices if needed
posted @ 2020-02-13 23:46  天琊蓝  阅读(163)  评论(0编辑  收藏  举报