<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by W3docs on Medium]]></title>
        <description><![CDATA[Stories by W3docs on Medium]]></description>
        <link>https://medium.com/@w3docs?source=rss-d5fd3c2f3dfe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*YDR-3jlqf4vFAwznCcCz9A.png</url>
            <title>Stories by W3docs on Medium</title>
            <link>https://medium.com/@w3docs?source=rss-d5fd3c2f3dfe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:20:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@w3docs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Google Duplex: Pros and Cons of the Smartest Chatbot]]></title>
            <link>https://medium.com/@w3docs/google-duplex-pros-and-cons-of-the-smartest-chatbot-2dee81da28e6?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dee81da28e6</guid>
            <category><![CDATA[google-duplex]]></category>
            <category><![CDATA[google-app-engine]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[google-assistant]]></category>
            <category><![CDATA[duplex]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 10:26:23 GMT</pubDate>
            <atom:updated>2020-07-28T19:18:01.819Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7r7HSYkbn73NrmR_skvh5w.jpeg" /></figure><h3>What is Google Duplex?</h3><p>Google Duplex is a revolutionary technology aimed at making natural conversations between humans and computers. This technology is focused on carrying out different tasks such as arranging appointments, and so on. The conversations are meant to be maximum natural, so people are not forced to adjust their speech to the machines. The tasks are implemented by the machine in a completely autonomous way without human engagement. Hence the system adapts to human, therefore, people can speak to the system in a way they speak to one another. Duplex can understand quite complicated sentences. In case the system gets commands that it can not carry out, a signal to the human operators is sent. Google Duplex was officially launched in May 2018. It represents the investments made by Google over the last couple of years. Let’s see how it can make the lives of people better.</p><h3>Benefits of Google Duplex</h3><p>The technology of Google Duplex has many benefits, especially for businesses. They let customers book with the help of this system and free themselves from training employees. This system also has a flexible scheduling and rescheduling policy. There are some limitations to the cancellation policy. For example, if you cancel a restaurant reservation, you will be able to make another one only in a day. According to Google, this is done for preventing the tool from possible spamming with cancellation calls.</p><p>As most businesses depend on phone interactions with their consumers, Duplex gives them a chance to increase customer engagement. Today almost all businesses offer flexible online booking options for the customers. Therefore, the tool of Google Duplex is a great opportunity to boost sales.</p><p>In the United Kingdom and the USA, Duplex helps users to book tickets to the cinema both on the web and Android. Users can entry it through Google App and <a href="https://assistant.google.com/">Google Assistant.</a> Google Duplex can be practiced in the tourism industry as well. With the help of this tool, travelers can overcome language barriers, as Google Assistant operates in numerous languages. With the help of this super-smart technology, you can take off boring jobs from your shoulders and save more time. All actions of Google Duplex are human-like and it can even overcome possible disagreements.</p><h3>Criticism</h3><p>Despite the bright sides of Google Duplex, it is not free of drawbacks. Since Google Duplex has been released, there have been many concerns over the ethical and societal issues. For example, human operators may not always notice that they are speaking to digital robots, instead of humans. This is considered unethical by critics. The next concerns are raised over privacy issues. The main concern is over the possible automated phishing calls by the Duplex. In this way, people can give information that should not be given. As a consequence, hackers can benefit from such leakage of information.</p><p>Also, there are no absolute guarantees that the virtual assistant will do everything right.</p><h3>Conclusion</h3><p>The newest AI-based feature, developed by Google, is the most human-like chatbot ever seen by people. It is surely a breakthrough mechanics, which will change the interaction between the businesses and their customers.</p><p>Anyway, we still can’t say that in near future Google Duplex will develop enough to void its dependency on people. The critics Of Google Duplex do not believe that it will happen soon. Anyway, the optimists think that in the foreseeable future, Duplex will successfully broaden its features and become more independent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dee81da28e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google lens: Your One-stop Solution]]></title>
            <link>https://medium.com/@w3docs/google-lens-your-one-stop-solution-7a915eca5dc5?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a915eca5dc5</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[google-lens]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 14:38:53 GMT</pubDate>
            <atom:updated>2020-07-22T14:38:53.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28Jx98j_aY3JE6reUnX7CQ.png" /></figure><p>Google has sped up development over the past few years. Google’s newest technology, based on the recognition of images, called “Google lens” can be defined as revolutionary. It makes the lives of its users much easier. We will try to cover the latest and most significant features of the Google lens in this article. The latest features of the famous app were officially announced during Google I/O 2019 conference. <a href="https://lens.google.com/">Lens</a> uses advanced deep learning routines in order to empower detection capabilities.</p><h3>It’s Easy in Usage</h3><p>After hearing about the Google lens App you might wonder how to use it. It is very simple and available at the same time. Just open the Google lens application, point the camera of your smartphone at the item you intend to learn more about. In pixel smartphones, it is set in the camera application.</p><p>Google lens doesn’t merely search for the image but analyzes it in detail. This means you can get basically any information you need from a picture. For example, if you point the camera at a book, it will allow you to preview the book content and will show you options to buy it.</p><p>You can take up any photo in Google photos and artificial intelligence will help you identify what is in it. Just a year ago this technology was part of Google assistant. Today it’s developing faster, broadening its framework. Now Google lens also helps to power new functions in Google maps, for example.</p><h3>Discover and Learn with Google Lens</h3><p>With the help of the Google lens, you can simply discover anything you see. For example, while searching for new clothes, the Google lens will help you decide, whether you will wear them in your daily life or not. Moreover, it allows you to see how other people match the clothes you have chosen. For example, you liked a skirt. Just take a screenshot and apply the Google lens to your photos and you will see how others have styled it. In this way, you can even give new life to your old clothes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*MkXcSOvbxTrlYhnO.png" /><figcaption><a href="https://www.w3docs.com/m/article/google-lens-your-one-stop-solution.html">Google lens: Your One-stop Solution</a></figcaption></figure><p>It has an option of scanning <a href="https://en.wikipedia.org/wiki/QR_code">QR codes</a>. Users don’t need a separate QR code scanner anymore. Google lens detects the QR code and generates all the necessary information or leads to the main website.</p><p>Google lens will help you even in a restaurant. It will assist you in finding the most popular meals and the photos of the given dishes. Google lens can help you while traveling. All you need is to take a picture and tap the “Translate” button. It allows you to take a picture of a sign and that sign will instantly be translated to your desired language. Moreover, you can tap it and listen to what is written on it. This feature is a fast solution for people with low vision.</p><p>As you see artificial intelligence serves as the main guideline for Google. The application of the Google lens combines the power of Google for capturing and understanding of the world around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a915eca5dc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Habits of Highly Effective Programmers]]></title>
            <link>https://medium.com/@w3docs/8-habits-of-highly-effective-programmers-b491f5f4e474?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/b491f5f4e474</guid>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 14:21:41 GMT</pubDate>
            <atom:updated>2020-07-22T14:21:41.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQux3dw-UFqJZrv9bYNx-w.jpeg" /></figure><p>In the contemporary world, software developers are in high demand as they find solutions to real-life issues and turn goals into reality. But programming is not just about writing good codes or reaching the desired output: it includes a lot more. In this <a href="https://en.wikipedia.org/wiki/Listicle">listicle</a>, we will discuss the various habits and techniques that successful software developers use to improve their lives as programmers.</p><blockquote>They Understand the Needs of the Business</blockquote><p>All skilled programmers realize that codes drive businesses. They bring to life suggestions and ideas forward supporting the company to make profits.</p><blockquote>They are Proactive</blockquote><p>The most successful programmers never focus on the things that are out of their control. They follow the proactive approach. They come to work on time and fully invest their energy in the things they can control. Even when they don’t have assigned tasks, they spend time learning new technologies and concepts. They are in the pursuit of constant studying and improvements. Focusing on the important things and being proactive helps to form new great skills.</p><blockquote>They are Used to Planning</blockquote><p>If you are a developer, who desires to achieve goals faster, then start planning. When you plan before coding, according to the given requirements, your goals will be achieved faster than usual. Skilled developers, first of all, analyze the core of the problem. They believe that it reduces mistakes in the working process.</p><blockquote>They Write Readable Codes</blockquote><p>One of the first things a developer should learn is to write readable codes. Skilled and successful developers ensure that their codes can be easily understood and adjusted. Besides, the readability of the code makes it easier to debug. On the contrary, the code that is written badly can be hard to understand, difficult to maintain and takes a lot longer to debug.</p><blockquote>They Use Version Control</blockquote><p>The next super effective habit of successful programmers is that they implement the <a href="https://www.w3docs.com/learn-git/version-control-system.html">Version Control System</a>. With the help of this system, you can track the changes made in the documents, websites, programs, etc. Very often, while writing codes programmers need to get back to the previous versions and start fixing bugs. Version Control is a system that makes it possible. One of the most famous Version Control Systems is <a href="https://www.w3docs.com/learn-git.html">Git</a>. With Git you don’t have to worry about errors anymore. Create as many versions as you like, experiment and improve. Moreover, Git works much better for group projects.</p><blockquote>They Practice Touch Typing</blockquote><p>Another effective and time-saving habit is touch typing. It is a special technique of typing using all the fingers but without looking at the keyboard. Note that it’s not as simple as it may seem at first sight. At the same time, it’s a really important skill a programmer should learn. When starting to learn touch typing, you should, first of all, pay attention to certain hand positions. The main idea is to keep all the fingers on the keyboard all the time.</p><blockquote>They are Used to Testing and Debugging</blockquote><p>Testing and debugging can take a lot of time, but skilled programmers prefer to debug as soon as a draft is ready. They are used to turning error reporting in order to be informed where and when the errors are occurring. Besides, errors can be easily detected by debugging instruments (for example, Firebug). You can’t use a single debugging tool for all programming languages. Learn various debugging methods to be able to apply them for different programming languages.</p><blockquote>They are Used to Sharing their Codes</blockquote><p>Sharing the code is a great opportunity for the developers, who want to learn on the go. Acting like this can bring you a lot of benefits:</p><ul><li>You can be sure that your code is secured. Even in case, your personal computer is acting up, you will have a backup ( like <a href="https://en.wikipedia.org/wiki/Google_Drive">Google Drive</a>);</li><li>You will have a chance to get responses about your code from the more experienced developers.</li><li>You work on social pressure, which means that you will feel more accountable to finish your projects on time.</li></ul><h3>Closing words</h3><p>Habits can bring success. There you go. Choose your favorite programming habits and use them in your daily routine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b491f5f4e474" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial intelligence: advantages and risks]]></title>
            <link>https://medium.com/@w3docs/artificial-intelligence-advantages-and-risks-14a2150ef143?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/14a2150ef143</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[robots]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 13:13:47 GMT</pubDate>
            <atom:updated>2020-07-22T14:22:34.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sydRtY-DM559T3L5cpyKg.jpeg" /></figure><p>Have you ever imagined that one-day machines will think and work like humans? If no, the time has come for it. It happened thanks to the invention of Artificial intelligence (AI). Let’s start to discover it from all sides.</p><h3>What is AI?</h3><p>Nowadays artificial intelligence (AI) is growing super rapidly. Sometimes AI is referred simply to the robots looking like human beings. Actually, it includes much more, starting from Google search tools to sovereign ammunition. Artificial intelligence doesn’t perform merely robotization, it carries out computerized tasks in a trustworthy manner. By the way, artificial intelligence is not provided as a separate application, it is generally applied as a new attribute (for example, Siri for Apple products).</p><p>The algorithms of AI are created for making real-time decisions. They are not merely lifeless machines, which are able to respond mechanically. They integrate information from divergent sources. Moreover, they immediately analyze the information, acting according to the received data.</p><h3>Categories of AI</h3><p>We can distinguish 3 main categories of AI: Narrow AI (or Weak), Artificial General Intelligence (AGI) (or Strong AI) and, finally, Artificial Super Intelligence (ASI).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*9qwbVp5wYcvc6HfW.png" /></figure><h4>Narrow AI (Weak AI)</h4><p>Narrow artificial intelligence simulates human intelligence focusing on performing a single task perfectly. This kind of AI is the only one that fully exists now. Most people use this AI category in their daily life. The most vivid examples of Narrow AI are Apple Siri, Google Translate, Google Assistant. They all are based on Natural Language Processing (NLP).</p><p>Generally, Narrow AI has a lot more limitations than human intelligence. Hence, no artificial intelligence is able to fully replace human cognition yet.</p><h4>Artificial General Intelligence (AGI)</h4><p>Nowadays AGI is just appearing. This kind of AI is meant to be as competent as a human being. This means that the model for creating this kind of AI is human intelligence. As there is a deficiency of a comprehensive understanding of the human brain functionality, the final version of the AGI is unlikely to be created in the near future. When this happens, humans should be ready to accept all the benefits and risks it will bring.</p><h4>Artificial Super Intelligence (ASI)</h4><p>This is the future of AI. In order to get to ASI, the AI must be superior to the human brain in everything. This kind of AI is planned to be perfect in emotional relationships, decision making and even in arts. At present these are the things that distinguish humans from machines. ASI will be able to master even in the parts that humans used to fail.</p><h3>Robots and AI</h3><p>Today robotics is one of the most fast-growing fields of study. Modern robots can learn in a limited volume. They gather information, then compare it to the existing data and decide what it means. The computer chooses among different actions and decides which of them is the most successful on the basis of the existing information. Moreover, there are robots that can interact with humans. The dreams of the future of AI were personified with the creation of <a href="https://en.wikipedia.org/wiki/Sophia_(robot)">robot Sophia</a>, which is a mix of artistry, science, and engineering. She even has citizenship in Saudi Arabia.</p><p>Nevertheless, the advantages of the existence of such kind of robots are not accepted unambiguously. There are still many questions about how humans will interact with robots in the future. It is hard to doubt the advantages of robots. For example, NASA uses robots for exploring the space, as they are resistant to damages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*W3XhiZkgNkkV1Qg4.png" /></figure><h3>Conclusion</h3><p>At present both companies and individuals recognize the advantages of AI. AI-based machines make our lives much easier. Prominent brands, such as Google, Apple, Tesla, and others successfully implement artificial intelligence. Its future is quite perspective: automated and smart cities, progressive and promising medical care and many more. One of the most important benefits of AI is the ability to avoid human errors and mistakes. Along with it, AI can bring challenges. First, it can become the reason for unemployment. Secondly, it requires billions of dollars, which is too expensive. And, finally, the risks that can be caused because of autonomous weapons. Taking into consideration all the possible risks humans can successfully develop AI for enhancing all the fields of our lives.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14a2150ef143" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Become a Polyglot Programmer?]]></title>
            <link>https://medium.com/@w3docs/why-become-a-polyglot-programmer-53cc34cb0fee?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/53cc34cb0fee</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 06:51:56 GMT</pubDate>
            <atom:updated>2020-07-22T14:24:04.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmFygfqC7Vdnk16U6F_1PA.jpeg" /></figure><p>The journey of becoming a professional programmer begins from learning the first programming language. Don’t get surprised, when you hear that more than 500 programming languages exist. The most popular ones are <a href="https://www.w3docs.com/snippets/java.html">Java</a>, <a href="https://www.w3docs.com/learn-javascript.html">Javascript</a>, Python, <a href="https://www.w3docs.com/learn-php.html">PHP</a>, <a href="https://www.w3docs.com/learn-css.html">CSS</a>, C++, Typescript, Ruby and more. Anyway, one question is still actual as never: can a programmer be successful knowing a single programming language? Surely, there are specialized roles in one programming language, but most of the companies prefer to hire programmers who can handle multiple programming languages. Therefore, if you still know a single programming language, here are the reasons that the time has come to learn the second one. In any case, you should never forget about keeping the quality before learning the next language.</p><h3>The More Tools You Have, the More Competitive you will be</h3><p>The most difficult thing in learning a programming language is to get to know how to divide complex problems into small ones. Remember, that your first programming language is the basis that will provide you with valuable experience in problem-solving. Learning a second language will require you to work at a higher level. Besides, you will understand your first programming language better after learning the second one. The reason is that there are more distinctions in a programming language than just typing codes. Moreover, in the process of learning a second or a third language, you start to find similarities between the languages.</p><h3>More Flexibility More Fun</h3><p>Your work becomes more diverse when you know multiple programming languages. This means, that instead of doing the same actions over and over again, you deal with different things. Hence your mind always stays alert. You will enjoy your work much more while meeting new challenges and opportunities.</p><h3>Some Programs Can Become More Popular</h3><p>The field of programming is growing rapidly. Therefore, some programming languages can get out of style, while others will become more popular. In order to be an in-demand programmer, one should continuously learn different programming languages.</p><h3>You Can Choose Among Various Jobs</h3><p>Handling only one programming language limits your job opportunities. Accordingly, knowing two or more programming languages gives you multiple chances to pursue the job you like more. It is much better than being stuck with a single option.</p><h3>You Can Increase Your Salary Potential</h3><p>Most of the companies are willing to pay more to those who already know multiple programming languages or to those who have the potential. As a rule, these people are the most valuable employees.</p><h3>Taking the First Steps</h3><p>The first step in starting to learn programming languages is to choose the <a href="https://www.w3docs.com/#">source</a>. Before choosing the language, you need to answer the following questions:</p><ol><li>What is the given programming language about?</li><li>Is that language currently in demand?</li><li>Where to use the language in the framework of the development stack?</li></ol><p>After getting general courses for learning the languages you have chosen, you can take <a href="https://www.w3docs.com/quiz/">quizzes</a> to test your skills.</p><blockquote>Good luck with your coding journey!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53cc34cb0fee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Git Subtrees]]></title>
            <link>https://medium.com/better-programming/git-subtree-usage-6aaba8b5d947?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aaba8b5d947</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Thu, 23 Apr 2020 13:14:31 GMT</pubDate>
            <atom:updated>2020-04-27T21:36:33.994Z</atom:updated>
            <content:encoded><![CDATA[<h4>Git repositories inside of other Git repositories</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYumsJ1_ENz1y8RiStEPUA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@mangofantasy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tim Johnson</a> on <a href="https://unsplash.com/s/photos/branching?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>There is no native subtree command, and it is like an approach that allows nesting one repository inside another one as a subdirectory. It is one of the ways to track the history of software dependencies.</p><p>Git subtree is the main alternative to Git submodule. However, subtrees should not be confused with submodules. Git subtree is a copy of a Git repository pulled into a parent one. Git submodule is a pointer to a specific commit in another repository. Unlike submodules, subtrees do not need.gitmodules files or gitlinks in the repository.</p><h3><strong>Pros and Cons</strong></h3><p>Git subtree sometimes has advantages over submodules, and there are a bunch of pros that you should encounter when choosing between them. However, there are some cons, too.</p><h4>Pros</h4><ul><li>Supported by the older version of Git. It can handle even the versions older than 1.5.2.</li><li>Simple workflow management</li><li>Available sub-project code after the super-project is done</li><li>No new Git knowledge</li><li>Modification of content without creating a separate repository copy of the dependency</li></ul><h4>Cons</h4><ul><li>Learning a new merge strategy</li><li>Complicated contributing code back upstream for the sub-projects</li><li>Not mixing super and sub-project code</li></ul><h3><strong>How to Use Git Subtree</strong></h3><p>Let’s discuss a short scenario. Suppose there is an external project, and you want to add it to your repository. For instance, to add a vim extension in a repository that stores your vim setup, you should act like this:</p><pre>git subtree add — prefix .vim/bundle/example <a href="https://github.com/Example/vim-example.git">https://github.com/Example/vim-example.git</a> master — squash</pre><p>The given example will squash the whole history of the vim-example project into your folder .vim/bundle/example, recording the SHA-1 of the master at the time for future reference.</p><pre>commit 6d7054b3gcea64e2e31f4d6fb2e3be12e5865e87<br>Merge: 87fa91e ef86deb<br>Author: Bob Brown&lt;bob@brown.com&gt;<br>Date: Tue Jun 23 13:37:03 2020 +0200<br>Merge commit ‘fe67ddf158faccff4082d78a25c45d8cd93e8ba8’ as ‘.vim/bundle/example’<br>commit fe67ddf158faccff4082d78a25c45d8cd93e8ba8<br>Author: Bob Brown&lt;ann@brown.com&gt;<br>Date: Tue May 22 13:37:03 2019 +0200<br>Squashed ‘.vim/bundle/example/’ content from commit b999b09<br>git-subtree-dir: .vim/bundle/example<br>git-subtree-split: b999b09cd9d69f359fa5668e81b09dcfde455cca</pre><p>If you call Git status, you won’t see anything, as Git subtree will have created the commits for you and left the working copy clean. Also, there will be nothing in the vim/bundle/example to indicate that the folder ever came from another repository.</p><h3><strong>Pulling</strong></h3><p>To update the subfolder to the latest version of the child repository, just run:</p><pre>git subtree pull — prefix .vim/bundle/example https://github.com/Example/vim-example.git master — squash</pre><p>Notice that the parameters remain the same, only the git add command is replaced with the git pull command, which will create a similar set of commits to the earlier add.</p><p>But keep in mind that Git subtree stores the IDs of the subproject commit, not the references in the metadata. Find the symbolic name that is connected with a commit:</p><p>git ls-remote <a href="https://github.com/Example/vim-example.git">https://github.com/Example/vim-example.git</a> | grep &lt;sha-1&gt;</p><h3>Rebasing After a Git Subtree</h3><p>Here, you should manually do an interactive rebase and remove the add commits, then execute rebase. Continue and re-execute the add command after the rebase process is completed.</p><p>Git subtree is easier for Git beginners. The code is merged in the history of the outer repository. It just requires clone, pull, and push, and is decentralized. Git subtree allows you to integrate another repository in your repository, including the history. That is why, after integrating it, the size of your repository becomes bigger. There isn’t a connection to the other repository after the integration, and you don’t need access to it unless you update it. Though it is considered as a great alternative to Git submodule, each of them is designed for different workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aaba8b5d947" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/git-subtree-usage-6aaba8b5d947">How to Use Git Subtrees</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Ultimate Guide to SSH]]></title>
            <link>https://medium.com/swlh/an-ultimate-guide-to-ssh-6951593b85a6?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/6951593b85a6</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Thu, 16 Apr 2020 18:09:03 GMT</pubDate>
            <atom:updated>2020-04-16T18:09:03.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h1V60ZrKYsg_ttk6" /><figcaption>Photo by <a href="https://unsplash.com/@nahelabdlhadi?utm_source=medium&amp;utm_medium=referral">Nahel Abdul Hadi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>SSH keys appear to be commonly used worldwide. The keys are used for executing financial transactions, updating configurations, moving log data, file transfers, interactive logins by system administrators, and for other purposes.</p><h3>What are SSH Keys?</h3><p><a href="https://www.w3docs.com/learn-git/ssh-key.html">SSH keys</a> are a credential access that is used in SSH protocol (Secure Shell). Secure Shell is a network protocol that helps you to log in from one computer to another securely, as well as to manage networks, operating systems, and configurations. Roughly said, SSH keys are nearly the same as passwords, but be sure that it is hundred times more secure to log into a server with SSH keys than use only “hard-to-decrypt” passwords because decrypting SSH is not an easy thing.</p><p>SSH keys come in pairs, and each of these pairs consists of a <em>public key </em>and a <em>private key</em>. These two are types of keys.</p><ol><li>Public keys (or authorized keys) determine who can access the system.</li><li>Private (or identity keys) identify users and allow their access.</li></ol><p>When using SSH Key for <a href="https://www.w3docs.com/learn-git.html">Git</a> means that you inform Git that your PC is authenticated for that specific GitHub account, and it won’t ask you about access ever again because you have already given it your SSH Key.</p><h3><strong>How to Generate SSH Key?</strong></h3><p>The steps of creating an SSH Key for Linux and Mac is actually the same as these two operating systems provide modern terminal apps combining with the SSH package.</p><p>1. Open the terminal and run:</p><blockquote>ssh-keygen -t rsa -b 4096 -C “your_email@example.com”</blockquote><p>2. Next, you should choose the file location:</p><blockquote>&gt; Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]</blockquote><p>Adding extra security won’t hurt you. So, here you need to add a passphrase to your SSH key.</p><blockquote>&gt; Enter passphrase (empty for no passphrase): [Type a passphrase]</blockquote><blockquote>&gt; Enter same passphrase again: [Type passphrase again]</blockquote><p>You can use SSH-agent to save your passphrase securely, so you don’t have to re-enter it every time.</p><h3><strong>Adding New SSH Key to SSH-Agent</strong></h3><p>The responsibility of the SSH-agent tool is holding the private keys, as well as arranging requests to sign SSH requests with the private keys for security purposes.</p><p>1. Run the following code so as to make sure that the SSH-agent code is executing:</p><blockquote>$ eval “$(ssh-agent -s)”</blockquote><blockquote>&gt; Agent pid 59566</blockquote><p>2. If it is running, continue the process by adding the new SSH key to the local SSH agent:</p><blockquote>ssh-add -K /Users/you/.ssh/id_rsa</blockquote><h3><strong>How To Add SSH Key To GitHub Account</strong></h3><p>1. Your first step should be copying the SSH Key to your clipboard.</p><p>2. If the filename differs from the one of the code, match the filename to the current setup:</p><blockquote>$ sudo apt-get install xclip</blockquote><blockquote># Downloads and installs xclip. If you don’t have ‘apt-get’, you should use another installer (e.g. ‘yum’)</blockquote><blockquote>$ xclip -sel clip &lt; ~/.ssh/id_rsa.pub</blockquote><blockquote># Copies the content of the id_rsa.pub file to the clipboard</blockquote><p>3. The next step is clicking your profile photo in the top right corner of any page and then click Settings.</p><p>4. Go to the SSH and GPG keys in the user settings sidebar.</p><p>5. Next, click New SSH Key.</p><p>6. Type Title and add a description to the SSH Key.</p><p>7. Paste your key into the “Key” field.</p><p>8. And, finally, hit “Add SSH Key”.</p><p>Congratulations, you have successfully added your PC’s SSH key to your GitHub account.</p><p>The crucial part in public-key authentication is that it allows one server to access another server without typing the password again. This is the reason that is why it gains popularity and is so commonly used for file transfers. The single sign-on operation provides convenience for the users, thus, making it a popular feature.</p><p>Check out more <a href="https://www.w3docs.com/learn-git.html">git commands</a> and <a href="https://www.w3docs.com/snippets/git.html">snippets</a>, and get into the Git world to explore new ideas!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6951593b85a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/an-ultimate-guide-to-ssh-6951593b85a6">An Ultimate Guide to SSH</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Things You SHOULDN’T do in Git]]></title>
            <link>https://medium.com/@w3docs/7-things-you-shouldnt-do-in-git-4d0ea10bc999?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d0ea10bc999</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Thu, 09 Apr 2020 13:02:00 GMT</pubDate>
            <atom:updated>2020-04-09T13:02:00.100Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*naDIdc6mm5Ivmnm5" /><figcaption>Photo by <a href="https://unsplash.com/@benhershey?utm_source=medium&amp;utm_medium=referral">Ben Hershey</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Undoubtedly, <a href="https://www.w3docs.com/learn-git.html">Git</a> can be your best choice; nevertheless, there are things that you shouldn’t do to avoid situations that may cause lots of issues for you and your team. In this article, we just want to suggest tips to follow in order to cut the chances of falling into an unwanted situation. Previously, we highlighted <a href="https://medium.com/better-programming/5-git-practices-for-effective-work-b612e5430bc7">5 Best Git Practices for Effective Work</a>, which seems to be a great topic gaining your attention day by day. Now let’s discuss those 7 Don’ts, which you can look through every time you use Git.</p><h3>Don’t</h3><ol><li><a href="https://www.w3docs.com/learn-git/git-commit.html">Commit</a> directly to the master. If you’re working with a team, you should always separate <a href="https://www.w3docs.com/learn-git/git-branch.html">branches</a> and only merge with the master when the piece you’re adding is finished and tested.</li></ol><figure><img alt="Force Pushing" src="https://cdn-images-1.medium.com/max/1024/1*CNPP6fzSAERIN5aDo0ylTg.png" /></figure><p>2. Work on several issues in the same branch. If a feature is dropped, it will be difficult to <a href="https://www.w3docs.com/learn-git/git-revert.html">revert</a> changes. You should certainly use a branch per issue, whether it is a bug or a feature.</p><p>3. Create one pull request addressing multiple issues. Keeping the work on separate issues allows the reviewer to accept or ask for improvements to the problems independently.</p><p>4. <a href="https://www.w3docs.com/learn-git/git-reset.html">Reset</a> a branch without committing or stashing your changes. Otherwise, the changes will be lost.</p><p>5. <a href="https://www.w3docs.com/learn-git/git-push.html">Force push</a> until you know how to handle it. Remember that force-pushing is a highly dangerous and unclean solution when working in a shared <a href="https://www.w3docs.com/learn-git/git-repository.html">repository</a>.</p><figure><img alt="Committing to Master" src="https://cdn-images-1.medium.com/max/1024/1*OMfJ_7ZQKfOdViO0lOso-A.png" /></figure><p>6. Commit large files in the repository as it increases the size of the repository. Committing large, especially binary files, may slow operations.</p><p>7. Rename or delete published <a href="https://www.w3docs.com/learn-git/git-tag.html">tags</a> as it is painful to undo. Also, don’t modify or delete the published history. Read about this tip in 5 Git Practices for Effective. Also, here’s a <a href="https://www.w3docs.com/snippets/git/how-to-delete-remote-tags.html">snippet</a> about deleting remote tags.</p><p>Be aware, every little change you’ve maid will put other’s work in danger. These are the tips that you should take into account while working.</p><p>In short, Git requires awareness, and if you work with a team of multiple developers, then you should double it so as not to mess up the work of others. If you’re on your own small project, the way you choose to handle the work does not matter.</p><p>Highlight the tip you consider the most helpful and let us know which tips you would add! For more information, visit our website — <a href="https://www.w3docs.com/">W3docs.com</a> and find <a href="https://www.w3docs.com/learn-git.html">Git Book</a> and <a href="https://www.w3docs.com/snippets/git.html">Git Snippets</a> and much more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d0ea10bc999" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Undoing in Git]]></title>
            <link>https://medium.com/better-programming/undoing-in-git-39e4404c0e92?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e4404c0e92</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 12:02:18 GMT</pubDate>
            <atom:updated>2020-04-06T01:23:45.185Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to fix your mistakes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aiI_EUnCEd5wqMrN" /><figcaption>Photo by <a href="https://unsplash.com/@dlanor_s?utm_source=medium&amp;utm_medium=referral">Dlanor S</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>We always highlight the countless opportunities that <a href="https://www.w3docs.com/learn-git.html">Git</a> offers you, and today’s article is not an exception. Git is prominent for its super-magical ability to undo almost everything! You probably remember thousands of sad cases where you merged and then realized that you hadn’t meant to do it. Even if you think that merging by mistake is the greatest failure in your life, take a deep breath and read the article until the end.</p><p>With that said, there is no traditional undo command in Git. Undoing is done through some other commands that will be the topic of this article. We’ll cover the top five undoing cases that will help you amend your mistake and move on!</p><h3><strong>Undoing Git Add</strong></h3><p>One of the most common questions in the Git community is “How can you undo git add before commit?” You can either undo a single file or all your changes.</p><p>This requires a super-easy solution. To undo a single file, simply invoke the <a href="https://www.w3docs.com/learn-git/git-reset.html">git reset</a> command:</p><pre>git reset &lt;file&gt;</pre><p>To undo all the changes, run the following:</p><pre>git reset</pre><p>The need for undoing is inescapable if you commit too early and forget to add more several files. In such cases, the amend command is used to make changes, stage, and commit them again. Check the <a href="https://www.w3docs.com/snippets/git/how-to-undo-git-add.html">How to Undo Git Add</a> snippet to find out how amending is done.</p><h3><strong>How to Undo Git Merge</strong></h3><p>Merging can put you in unwanted circumstances. But as we’ve already told you, you can easily fix your mistakes! Let’s imagine a scenario where you’ve already pushed your changes and realize that you must undo that merge.</p><p>Here comes another undo-type command — <a href="https://www.w3docs.com/learn-git/git-revert.html">git revert</a>. Start by checking out the master using <a href="https://www.w3docs.com/learn-git/git-checkout.html">git checkout</a>:</p><pre>git checkout master</pre><p>The next step is running <a href="https://www.w3docs.com/learn-git/git-log.html">git log</a> to get the ID of the merge commit:</p><pre>git log</pre><p>Then revert to that commit by acting as follows:</p><pre>git revert -m 1 &lt;merge-commit&gt;</pre><p>You order Git to revert to the first parent of the master branch merge commit with -m 1. For example, -m 2 will make Git revert to the first parent from where the merge initially came.</p><p>Also, read this snippet to see <a href="https://www.w3docs.com/snippets/git/how-to-undo-git-merge.html">How to Undo an Unpushed Git Merge</a>.</p><p>Git also suggests <a href="https://www.w3docs.com/snippets/git/how-to-preview-a-merge-in-git.html">previewing opportunity</a> in case you want to see what would happen when you merge branches.</p><h3><strong>How to Undo Git Reset</strong></h3><p>Here, we suggest a super-short method of undoing git reset:</p><pre>git reset ‘HEAD@{1}’</pre><p>Then you can run the <a href="https://www.w3docs.com/learn-git/git-reflog.html">git reflog</a> command to view the log of all reference updates (e.g. checkout, reset, commit, merge):</p><pre>git reflog</pre><p>Check out <a href="https://www.w3docs.com/snippets/git/how-to-undo-git-reset.html">a simple use case</a>.</p><h3><strong>Undoing Recent Commits in Git</strong></h3><p>There are several methods of undoing <a href="https://www.w3docs.com/learn-git/git-commit.html">git commit</a>. Let’s consider each of them.</p><p>The git reset command can be used to undo your changes:</p><pre>git reset — soft HEAD~x (or git reset — soft commit hash).</pre><pre>git reset — soft HEAD~x</pre><p>Type a number instead of ~x. For example, if you specify ~4, the command will affect the fourth commit from the bottom. If you do not specify any number, git reset — soft HEAD will change the latest commit.</p><p>When you use the git reset — soft HEAD command, you just undo the last commit, but the changes you’ve made will be stored in your working tree and on your index. So git commit will create a commit with the same changes as the commit you “undid” before.</p><p>Another method is the git revert HEAD~x (git reset — hard commit hash) command that reverts the changes specified by the last commit in HEAD and creates a new commit with the reverted changes:</p><pre>git revert HEAD ~x</pre><p>This method is best when working with public shared repositories.</p><h3><strong>Undoing Git Rebase</strong></h3><p>Let’s say you have performed the <a href="https://www.w3docs.com/learn-git/git-rebase.html">git rebase</a> command on the local <a href="https://www.w3docs.com/learn-git/git-branch.html">git branch</a> and pushed it to the remote. Then you realize that it is not what you expected and now you have to undo it.</p><p>The simplest way is to find the head commit of your branch by running:</p><pre>git reflog</pre><p>Next, it is necessary to reset the current branch to it using git reset. Be sure before running the git reset command with the — hard option like this:</p><pre>git reset — hard HEAD@{5}</pre><p>Here, the old commit is HEAD5.</p><h3>Conclusion</h3><p>This is how you can undo the most used commands in Git. Though there is no traditional undo command, other git commands can help you undo things that you’ve done by mistake.</p><p>Check out more <a href="https://www.w3docs.com/learn-git.html">git commands</a> and <a href="https://www.w3docs.com/snippets/git.html">snippets</a>, and get into the Git world to explore new ideas!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e4404c0e92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/undoing-in-git-39e4404c0e92">Undoing in Git</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Merge or Rebase? That’s the Problem]]></title>
            <link>https://levelup.gitconnected.com/merge-or-rebase-thats-the-problem-11d65944b7e?source=rss-d5fd3c2f3dfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/11d65944b7e</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[W3docs]]></dc:creator>
            <pubDate>Thu, 26 Mar 2020 15:26:03 GMT</pubDate>
            <atom:updated>2020-04-21T02:36:13.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WTB5OTwYgLGriHM5Ha_AGQ.jpeg" /></figure><p>Actually, <a href="https://www.w3docs.com/learn-git/git-rebase.html">git rebase</a> and <a href="https://www.w3docs.com/learn-git/git-merge.html">git merge</a> do the same thing but in different ways. They both integrate <a href="https://www.w3docs.com/learn-git/git-commit.html">git commits</a> from one <a href="https://www.w3docs.com/learn-git/git-branch.html">branch</a> into another, but how each of them achieves the desired result, we will discuss in the scope of this article!</p><p>First, let’s dive deep into each of these commands and find the exact strategy which suits best for your workflow.</p><h4><strong>Git Merge</strong></h4><p>Git merge takes the content of a source branch and <a href="https://www.w3docs.com/snippets/git/best-and-safe-way-to-merge-a-git-branch-into-master.html">integrates it with a target branch</a>. As a result, only the target branch is changed, and the source branch history remains untouched. In other words, when you merge, your HEAD branch generates a new git commit, maintaining the ancestry of each commit history.</p><h4>Pros</h4><ul><li>Provides simple usage.</li><li>Keeps the original context of the source branch.</li><li>Preserves the commit history and the chronological order.</li><li>Separates the commits of the source branch from another one.</li></ul><h4>Cons</h4><ul><li>Litters up the history by a lot of merge commits, thus making the visual charts of Git repository have rainbow branch lines without useful information.</li></ul><h4><strong>Git Rebase</strong></h4><p>Git rebase piles all the changes into a single patch and integrates the patch into the target branch. One of the core differences between merge and rebase is that the latter cleans history. In the process of transferring the work from one branch to another, unwanted parts are removed to maintain a linear project history. The command is handy in the cases when you need the recent updates of the master branch in your feature branch, but the history of the master branch must remain clean.</p><blockquote><em>Rebasing re-writes the changes of one branch into another without creating a new commit.</em></blockquote><h4>Pros</h4><ul><li>Makes the history readable and linear and clears the complex history.</li><li>Cleans the commits by making them a single commit.</li></ul><h4>Cons</h4><ul><li>Doesn’t work with pull requests as you can’t see what minor changes members of the team made.</li><li>Lowers the feature down to a bunch of commits that can hide the context.</li></ul><h4><strong>When to Merge and When to Rebase?</strong></h4><p>You’ve already distinguished the two strategies, now let’s discuss use cases.</p><h4><strong>Investigation</strong></h4><p>Before taking a step, a careful investigation is always a good idea. It is important to note that chosen strategy should match your workflow. One workflow strategy can be better for one team, while it can be fatal for another team. Therefore, consider each strategy before choosing one.</p><h4><strong>Individual vs Team Work</strong></h4><p>If you work individually, it may be convenient for you to choose rebase instead of merge. If you share the feature branch, you are getting the changes from, with other members, the rebasing process will create inconsistency.</p><blockquote><em>Always take into account that merge preserves the history, whereas rebase rewrites it!</em></blockquote><p>In the cases of feature-based workflow, git merge may be the right choice for your team. It also helps you avoid <a href="https://www.w3docs.com/learn-git/git-revert.html">reverting</a> or <a href="https://www.w3docs.com/learn-git/git-reset.html">resetting</a> anything.</p><p>As a result of merge, different features remain isolated and don’t interfere with existing commit histories. If the priority is to keep spotless history, then git rebase is a more appropriate version to avoid irrelevant commits.</p><h4><strong>Conflicts</strong></h4><p><a href="https://www.w3docs.com/snippets/git/undoing-a-git-rebase.html">Reverting a rebase</a> is much harder than <a href="https://www.w3docs.com/snippets/git/how-to-revert-a-merge-commit-already-pushed-to-the-remote-branch.html">reverting a merge</a> as rebase conflicts are presented one commit at a time, whereas <a href="https://www.w3docs.com/learn-git/merge-conflicts.html">merge conflicts</a> are presented all at once. Git allows previewing what will happen when you <a href="https://www.w3docs.com/snippets/git/how-to-preview-a-merge-in-git.html">merge your branch</a>.</p><p>However, don’t mess with rebase! Don’t rebase until you know what you are doing. Incorrect rebase can put you in a crucial situation leading to serious consequences.</p><blockquote><em>Always remember not to rebase on a shared branch.</em></blockquote><p>Also, read <a href="https://www.w3docs.com/snippets/git/how-to-rebase-git-branch.html">How to Rebase Git Branch</a>.</p><p>In conclusion, rebasing and merging offer the same result by choosing different methods. Each method is unique in its own way. What can be immensely useful for one case, can be fatal for another. A careful investigation can prevent chaos. Thus, always take into account the current situation and possible obstacles for you and your team. Also, check our <a href="https://www.w3docs.com/snippets/git.html">Git Snippets</a> and <a href="https://www.w3docs.com/learn-git.html">Git Book</a> to read about the commands and see examples!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11d65944b7e" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/merge-or-rebase-thats-the-problem-11d65944b7e">Merge or Rebase? That’s the Problem</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>