<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fork &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/fork/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Mon, 12 Oct 2026 12:38:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>How to fork a project on Gitlab?</title>
		<link>https://www.bestdevops.com/how-to-fork-a-project-on-gitlab/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Mon, 22 Nov 2021 14:57:33 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[Fork]]></category>
		<category><![CDATA[GitLab]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Source]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22449</guid>

					<description><![CDATA[Hello, my dear friends, welcome to the most abundant part of programming that makes your life very great with enormous [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/eXMy_SuLSZgHBamI_KFu7I9QtT5bUQIEXfhCvrDyT2I.png" alt="" class="wp-image-22451" width="825" height="343" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/eXMy_SuLSZgHBamI_KFu7I9QtT5bUQIEXfhCvrDyT2I.png 640w, https://www.bestdevops.com/wp-content/uploads/2021/11/eXMy_SuLSZgHBamI_KFu7I9QtT5bUQIEXfhCvrDyT2I-300x125.png 300w" sizes="(max-width: 825px) 100vw, 825px" /></figure></div>



<p class="wp-block-paragraph">Hello, my dear friends, welcome to the most abundant part of programming that makes your life very great with enormous pleasure because this is the place where everyone should want to know that what is worth it? and how it plays an important role in real life. So, today we will learn about how can you fork a <a href="https://www.devopsschool.com/">project</a> and manage them. For this, I will go very basic step by step. I wish that you will read it till the end.</p>



<h2 class="wp-block-heading">What is a fork?</h2>



<p class="wp-block-paragraph">Let’s understand this. In very simple words, a fork is a copy of a project, forking a pro/repo allows you to make changes without affecting the original project or copy. Whenever you want to make changes to the project or you do not want to change anything in the original copy then you can create a fork that you can create a copy and make your changes. And later on, you can merge with the original project as well.</p>



<h2 class="wp-block-heading">How to fork a project?</h2>



<p class="wp-block-paragraph">So, here is step no.1</p>



<p class="wp-block-paragraph">Step 1: <strong>log in to Gitlab and go to your project</strong></p>



<p class="wp-block-paragraph">So, you will go to your Gitlab and sign in or log in with your credentials. And then you will go to your project where there will be your single project. You can also go from there with the above project option. You will see, your project will be there then you can also go to your projects from there as well.</p>



<p class="wp-block-paragraph">Step 2: <strong>Click on the fork button</strong></p>



<p class="wp-block-paragraph">So, there on your projects. You will see, there will be a button. That will be a fork, in your project. When you will click on that button then you will get a message like No spaces available for the name to fork the project.</p>



<p class="wp-block-paragraph">I tell you that what will you do? When you will see a message like this. You will see a group option on the top menu then you will click on your groups. And once, you will have it on the group screen. You will see the New Group option beside the corner. Then, you will click on that and give your group name and description. If you want to keep public or private, you can do that with one click. So, your group will have created at that time. If you will go back to your project and there you will again click on the fork option. So, they will ask to select a namespace to fork the project and you will see, your created group will be there. Then you will see that the project has successfully forked. You can also create merge requests over there.</p>



<p class="wp-block-paragraph">For example, On the copy of the project, you can make some changes, and once, you have to change. If you create a merge request to merge with your original branch. Then you will do a new merge request so, you will select source branch and branch name and after that, you will also select the target branch &amp; their name. And you will click on <strong><em>compare branches &amp; continue. </em></strong>If any changes will have been done there so, it will see in that but you will have not done any changes in the copied or forked project. Then, it will show you as usual. If you have done any changes in that &amp; you will do submit a merge request then you will have to realize the changes and you can submit back. And this is how you can do forking of a project and a copy of the project.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe  id="_ytid_22108"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/0oo3Q2L4i4M?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What is a fork in GitHub?</title>
		<link>https://www.bestdevops.com/what-is-a-fork-in-github/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Fri, 22 Oct 2021 17:09:22 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[contributions]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Fork]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[repositories]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22188</guid>

					<description><![CDATA[Hello folks, welcome to the exotic world of programming. Let’s take a move to the scene of the fork and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="700" height="315" src="https://www.bestdevops.com/wp-content/uploads/2021/10/fork.png" alt="" class="wp-image-22196" srcset="https://www.bestdevops.com/wp-content/uploads/2021/10/fork.png 700w, https://www.bestdevops.com/wp-content/uploads/2021/10/fork-300x135.png 300w" sizes="(max-width: 700px) 100vw, 700px" /></figure></div>



<p class="wp-block-paragraph">Hello folks, welcome to the exotic world of programming. Let’s take a move to the scene of the fork and its contribution in that how can we do fork and contribution in GitHub. If you would understand that each and every aspect of account creation, making a repository, and creating the branch in GitHub then this is the place where you can great ideology on the fork.</p>



<h2 class="wp-block-heading">Adding more features</h2>



<p class="wp-block-paragraph">Suppose you have opened your profile and there is a repository of your like <em>“GitHub training”</em> and one of your files is there from the name of <em>requirement.txt. </em>So, you have to do <a href="https://www.devopsschool.com/">designing</a> of two features like dark mode and video calls but you don’t know how to do that? Then there is a contributor, it can make dark mode or one type of front hand. If anybody wants to contribute so, how will they do?</p>



<h2 class="wp-block-heading">Contributing to the code</h2>



<p class="wp-block-paragraph">Suppose, you are a contributor and you are opened your own profile in the next browser. If you want to contribute to your GitHub project through your name like in <em><strong>beaproplayer</strong></em> and GitHub training then you will search like <em><strong>beaproplayer024/GitHub training</strong></em> in the GitHub search bar. So, there will have come of your repositories and requirement.txt file will open and from there you can create the file. When you will do create a file then the notification will come there like this way “you don’t have access to”. Because you have opened your own profile how can you get access to another profile id? You’re not a contributor and you have no right to doing changes in files. So, you will have to create a fork for this, what does it mean? It means that they have made a replica or you can say mirror for this. When you will do changes to this then one request will have to send to the beaproplayer024 profile. Suppose, you have to add a dark mode design, making a text file, you are making a darkmode.txt file. You are adding like designing, video calls, features adding and thanks, after this, you will have written like dark mode design adding in the propose new file. As you will do propose a new file then there will come a pull request option, you will have to do a pull request.</p>



<h2 class="wp-block-heading">Forking in GitHub</h2>



<p class="wp-block-paragraph">You have done pull requests and there are all your files. If you have to do merge your file in that repository then you will have to send one request. When you will do pull requests then the front hand of your dark mode will be ready. When you will go to your profile <strong><em>beaproplayer</em> </strong>so, you will see one pull request will have come there.</p>



<h2 class="wp-block-heading">Analyzing the contributed code</h2>



<p class="wp-block-paragraph">If you will see a pull request, as well as one fork, will be there, what does it mean? If any contributor has to do contribute towards yourself so, how much contribute is happening as much fork happens. After this, you will go to pull request, you will see dark mode adding file there, what code has sent by the user? So, before, you will see about the code what is in that? You will move in a commit and see what is written in that code? There will be a dark mode design. Like this way, you will do verify that. After this, you will go to pull request and merge request, again you will do confirm request then your file will be merged from status open. After this, when you will go to code then your darkmode.txt file will have come which will be in the master branch. Those files will locate in your profile master branch and you can also see contributor or fork there. Like as your contribution happens and like this way, you can contribute to any project. When you will return back to your profile, below your profile activity option will exist there.</p>



<h2 class="wp-block-heading">Merging the contributed code to the master branch</h2>



<p class="wp-block-paragraph">In your profile, every activity will show to you. Those files, you have added to it. If you would see in your profile changes will have happened and dark mode will have added to it. So, this is the contribution, you can do like this. You have seen, how can you do contribute to it and how can other users do contribute to your project. You have seen about all of these things.</p>



<h3 class="wp-block-heading">Related video:</h3>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_54951"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/2noPc0YeR5E?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Update a Library Version in Android build.gradle</title>
		<link>https://www.bestdevops.com/android-make-new-version-for-build-gradle/</link>
					<comments>https://www.bestdevops.com/android-make-new-version-for-build-gradle/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Thu, 13 Jul 2017 07:59:49 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DevOps Tools]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[build.gradle]]></category>
		<category><![CDATA[Fork]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Gradle]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=2093</guid>

					<description><![CDATA[Learn how to fork an Android library from GitHub, increment its version, and update the dependency reference in your app's build.gradle file.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you fork an Android library from GitHub, make changes, and want to consume that updated library in another project, you need to understand how Gradle versioning works. This guide walks through the process of incrementing a library version and updating the corresponding dependency declaration in your app&#8217;s <code>build.gradle</code> file.</p>



<h2 class="wp-block-heading">The Problem</h2>



<p class="wp-block-paragraph">A common scenario: you&#8217;ve forked an Android library project on GitHub, cloned it locally (for example via SourceTree), made your own changes, and now want to reference your updated version from another app using Gradle. You need to bump the version so Gradle can distinguish your build from the original.</p>



<p class="wp-block-paragraph">For example, you might want to move from:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">implementation <span class="hljs-string">'com.github.lib:library-name:0.3.1'</span></code></span></pre>


<p class="wp-block-paragraph">…to your newly versioned build:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">implementation <span class="hljs-string">'com.github.lib:library-name:0.3.2'</span></code></span></pre>


<h2 class="wp-block-heading">Step 1: Update the Version in the Library&#8217;s build.gradle</h2>



<p class="wp-block-paragraph">Open the library module&#8217;s <code>build.gradle</code> file (not the app module — the library module itself). Look for the version declaration. Depending on how the library is set up, you will find something like one of the following patterns:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript"><span class="hljs-comment">// In the library's build.gradle</span>
group    = <span class="hljs-string">'com.github.lib'</span>
version  = <span class="hljs-string">'0.3.1'</span>

<span class="hljs-comment">// Or inside android {} block:</span>
defaultConfig {
    versionName <span class="hljs-string">"0.3.1"</span>
    versionCode <span class="hljs-number">1</span>
}</code></span></pre>


<p class="wp-block-paragraph">Increment the version to reflect your changes. Following <a href="https://semver.org/" rel="noopener">semantic versioning</a>, a patch-level fix increments the third number:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">group    = <span class="hljs-string">'com.github.lib'</span>
version  = <span class="hljs-string">'0.3.2'</span></code></span></pre>


<h2 class="wp-block-heading">Step 2: Publish or Reference Your Updated Library</h2>



<p class="wp-block-paragraph">After incrementing the version, you have several options to make the library available to your other project:</p>



<ul class="wp-block-list">
<li><strong>Publish to a local Maven repository</strong> — Run <code>./gradlew publishToMavenLocal</code> in the library project. Your updated artifact will be available in your local <code>~/.m2</code> repository.</li>
<li><strong>Publish to JitPack</strong> — If your fork is pushed to GitHub, JitPack can serve it as a dependency directly from your repository. Tag a release and reference it using the JitPack coordinates.</li>
<li><strong>Use a local file dependency</strong> — Reference the generated <code>.aar</code> or <code>.jar</code> file directly as a local module dependency without publishing to any repository.</li>
</ul>



<h2 class="wp-block-heading">Step 3: Update the Dependency in Your App&#8217;s build.gradle</h2>



<p class="wp-block-paragraph">Open your consuming app&#8217;s <code>build.gradle</code> (Module: app) and find the <code>dependencies</code> block. Update the version string to match the new version you declared in the library:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">dependencies {
    <span class="hljs-comment">// Old version</span>
    <span class="hljs-comment">// implementation 'com.github.lib:library-name:0.3.1'</span>

    <span class="hljs-comment">// Updated to your new version</span>
    implementation <span class="hljs-string">'com.github.lib:library-name:0.3.2'</span>
}</code></span></pre>


<p class="wp-block-paragraph">After editing the file, click <strong>Sync Now</strong> in Android Studio (or run <code>./gradlew build</code> from the command line) to pull in the updated dependency.</p>



<h2 class="wp-block-heading">Note on the compile Directive</h2>



<p class="wp-block-paragraph">The original question used <code>compile</code>, which was the standard dependency configuration in older versions of the Android Gradle plugin. Since Android Gradle Plugin 3.0, <code>compile</code> has been deprecated and replaced with <code>implementation</code> (or <code>api</code> for transitive exposure). Use <code>implementation</code> in modern projects:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript"><span class="hljs-comment">// Deprecated (AGP &lt; 3.0)</span>
compile <span class="hljs-string">'com.github.lib:library-name:0.3.2'</span>

<span class="hljs-comment">// Correct for AGP 3.0+</span>
implementation <span class="hljs-string">'com.github.lib:library-name:0.3.2'</span></code></span></pre>


<h2 class="wp-block-heading">Quick Reference: Version Bump Checklist</h2>



<ol class="wp-block-list">
<li>Make your code changes in the forked library project.</li>
<li>Increment the <code>version</code> (and optionally <code>versionCode</code> / <code>versionName</code>) in the library&#8217;s <code>build.gradle</code>.</li>
<li>Build and publish the library (local Maven, JitPack, or file dependency).</li>
<li>Update the version string in your app&#8217;s <code>build.gradle</code> dependencies block.</li>
<li>Sync Gradle and verify the build succeeds.</li>
</ol>



<p class="wp-block-paragraph"><em>Original question sourced from <strong>stackoverflow.com</strong>.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/android-make-new-version-for-build-gradle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
