官术网_书友最值得收藏!

Why use GitHub Desktop?

It is true that the Git CLI tool is powerful, and you will be just fine if you stick to it. However, we, full-stack developers, are worried about a variety of concerns. In your rush to complete the task at hand, you can easily ruin your and sometimes your team's day, by following bad or incomplete advice.

See the following screenshot of such advice from StackOverflow (http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull):

If you execute the preceding command, be prepared to lose uncommitted local changes. Unfortunately, novice users have a tendency to follow the simplest and most direct instructions, potentially leading to lost work. If you think your past commits are safe, think twice! When it comes to Git, if you can imagine it, it can be done through the CLI.

Thankfully, with GitHub, you can protect branches and implement the GitHub workflow, which entails branching, committing, merging, updating, and submitting pull requests. The protections and the workflow help prevent harmful Git commands from making irreversible changes and enable a level of quality control so that your team remains productive. Performing all of these actions through the CLI, especially when there are merge conflicts, can get complicated and tedious.

For a more in-depth understanding of the benefits and pitfalls of Git and GitHub, you can read my 2016 article on the topic at: Bit.ly/InDepthGitHub.

主站蜘蛛池模板: 开远市| 康马县| 无棣县| 沅江市| 布拖县| 建昌县| 长治市| 门源| 额济纳旗| 遂昌县| 沁源县| 湖北省| 伊金霍洛旗| 合作市| 吉安县| 米脂县| 英德市| 桃源县| 高平市| 城口县| 辽阳县| 增城市| 吉木萨尔县| 南岸区| 和平区| 武城县| 同心县| 平泉县| 井陉县| 和林格尔县| 鄄城县| 大冶市| 哈密市| 昔阳县| 司法| 云林县| 兰州市| 乌兰浩特市| 成都市| 仙居县| 唐山市|