Personal experience on source code management(Git)

Understand what‘s Distributed 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  breaking the git file system.
  3. double confirm on the merge conflict you had made

Check in your source code correctly and elegantly

  1. diff your changes before check 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 if needed

原文地址:https://www.cnblogs.com/makesense/p/12305930.html

时间: 2024-08-30 10:40:49

Personal experience on source code management(Git)的相关文章

How to apply a patch for Linux source code

For example, I need to apply this patch for my Linux source code: http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/diff/?id=fe82b3300ec9c0dc4ba871f9a58b265aadf4e186 First, I copy this paragraph to a file in local directory: /usr/src/linux-4.

Tips for newbie to read source code

作者:ll kid链接:https://zhuanlan.zhihu.com/p/23796485来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. This post is first posted on my WeChat public account: GeekArtT Reading source code is always one big part for software engineers. Just like the writers to learn

在 Win7 环境使用 hyperledger fabric source code 模拟 IBM Bluemix Blockchain Service

在 Win7 环境使用 hyperledger fabric source code 模拟 IBM Bluemix Blockchain Service 标签: blockchain区块链 2016-10-13 07:05 949人阅读 评论(1) 收藏 举报  分类: blockchain(12)  Docker(5)  区块链(6)  版权声明:本文为博主原创文章,未经博主允许不得转载. 目录(?)[+] 在 Win7 环境使用 hyperledger/fabric source code

Android Branch and master source code merge(patch)

Environment : Android 4.4.2 merge with Android 4.4.3(with other vendors source code) 1.确定你要merge 到 其他分支的版本,并在服务器测获得具体lable 对应的commit 或者 从build 对应的Repo Manifest 中找到要patch 到目标代码的Commit ID <?xml version="1.0" encoding="UTF-8"?> <

12 Source Code Profilers for C &amp; C++

Source :http://open-tube.com/12-source-code-profilers-for-cc/ Code Profilers are very distinct from traditional debuggers. They are able to catch the trivial and non fatal coding errors which are often hard for humans to catch. These trivial bugs lat

Memcached source code analysis (threading model)--reference

Look under the start memcahced threading process memcached multi-threaded mainly by instantiating multiple libevent, are a main thread and n workers thread is the main thread or workers thread all through the the libevent management network event, in

CRC32 Source Code

/* The Quest Operating System * Copyright (C) 2005-2010 Richard West, Boston University * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Softwar

【开源】海看源代码统计工具 Haikan Source Code Counter

Haikan Source Code Counter 海看源代码统计工具 BY 杭州海看网络科技有限公司 ------------------- github上的地址: https://github.com/haikanwhf/HaikanSourceCodeCounter ------------------ 海看源代码统计工具V1.7.rar

About building ant & install ant on centos7 {ant source code 1.94}

? ? ? ? ? ? ? hamcrest-junit-2.0.0.0.jar java-hamcrest-2.0.0.0.jar ? copy to ant-sourceCodeDir/lib/optimal ? ? ? ? About building ant & install ant on centos7 {ant source code 1.94}