<?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 Joshua O. Adegoke on Medium]]></title>
        <description><![CDATA[Stories by Joshua O. Adegoke on Medium]]></description>
        <link>https://medium.com/@adejoshe?source=rss-4484770fde18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*caGB2zF0cYXiPiksptqFtg.jpeg</url>
            <title>Stories by Joshua O. Adegoke on Medium</title>
            <link>https://medium.com/@adejoshe?source=rss-4484770fde18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:12:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adejoshe/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[Git for beginners : The introductory course]]></title>
            <link>https://adejoshe.medium.com/git-for-beginners-the-introductory-course-5b03c69b20ec?source=rss-4484770fde18------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b03c69b20ec</guid>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Joshua O. Adegoke]]></dc:creator>
            <pubDate>Fri, 18 May 2018 20:59:25 GMT</pubDate>
            <atom:updated>2018-05-18T20:59:25.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*vWeEEKNETw56B0zbUBf1tw.jpeg" /></figure><p>Git is a version control system for developers mainly to collaborate and track progress of an existing individual/team project a version control system for developers mainly to collaborate and track progress of an existing individual/team projects. It is a source code management system for collaboration.</p><p>GitHub on the other hand is a web platform, where developer’s hosts<br>their git projects and works.</p><p>So, why on earth should you use git?<br>Easy to say, its simply due to the ease of use and access to collaborative projects. ie with git version control system, any set of developers around the world can work effectively and efficiently without seeing one another.</p><p>Quickly, i would like to explain some key terms you might come across while using the git version control system.</p><p>REPOSITORY: As mentioned earlier, this refers to a workspace/workstation where projects are run. this acts as a folder on any system. once a repository is created, files are added to the folder and the team’s collaboration is put to a play.<br>BRANCH: A branch is seen as a logical tree, we have the Stem(main) and the other branches. basically, there are two (2) branches (master and child). Master branch is the main active folder for the projects. the child branch is any other sub-branch created under the master branch.<br>PUSHING: is used in the context of adding/updating files/folders on a repository.<br>PULLING is used in the context of downloading files/folders to a repository.<br>CLONING is used in form of downloading files/folders to the local server/computer.<br>FORKING is used to clone a repo (someone else’s repo) to your own repo.<br>COMMIT is used to say that a particular change has been effected. this usually come with a commit message to specify what part of the project was modified by a member. A dive into the world of git command line at this stage should sound pretty easy to comprehend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*g9-NxIlO3sAQSa5KnBjkSw.png" /><figcaption>Collaborative tool</figcaption></figure><p>COLLABORATION:<br>Ever wondered how say three (3) developers, working to build a solution from their individual remote locations still maintain constant survey of how the product will look like, every individual getting the actual progress of the project without seeing each other? traditionally, we transfer files between members of a team for a project via flash drives or mails (less than a decade ago). Thanks to the introduction of git, team members can now effectively use the web.</p><p>Github.com provides a UI approach for file upload as the team leader creates a repository for the project and other team members can start performing<br>other modification operations on GitHub. Professionally, developers prefer to use the git bash terminal, which involves the use of command line/prompt to make changes to an existing file or repository.</p><p>THE WORKFLOW:<br>The workflow specifies exactly how the project would be initialized and finished. It shows the series of steps in between the two phases. the git workflow helps to boost the collaborative effect of a team’s project. the workflow tells us how to understand the logical way git sees the operations<br>carried out by the projects team members and admin (team leads). A typical workflow can be viewed in three steps:<br>1. create branch: the create branch is the phase where the team created a branch off the master branch. this branch created off the master branch<br>now serves as the active working directory of the project whose stable version is yet to be achieved.<br>2. Work: Work is being done in the newly created branch, as members of the team starts to perform operations on the file/repository. this is when all members<br>starts adding, removing and manipulating files on the branch.<br>3. Merge: This stage marks the completion of the project as everyone having contributed to the stability of the project, the project is then merged with the master<br>branch and the project is said to be completed or its version declared a stable version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*BuMbQ8V9_Fa9hzqmoJFXYw.jpeg" /><figcaption>Best practices for git</figcaption></figure><p>BEST PRACTICES<br>Applying the Do’s and Don’ts:<br>There are a couple of Do’s and Don’ts that jointly form the best practices for teams while working on projects.</p><p>Comment early and often:<br>This is arguably, one of the best practices a developer should adopt when making changes to logical structures of files. Logical structures in the sense that every change made to perform a particular function should be commit-ted separately, i.e. one commit per logical change. This helps to explain the way the code revolves as every user that comes back to pull sees and knows exactly where the changes have been made. This boosts collaborative efforts.<br>Comments should be short and precise, and also descriptive with detailed explanation about the commit made.</p><p>Enforce standards:<br>This is a security measure that allows the project attain some level of security. The admin assigns different security rules to the repo for the other team members so as to control access rights to the repo.</p><p>Don’t panic: <br>Never panic when you make a mistake in committing as the files can be accessed. Due to the history tracking supported by GitHub, developers can return to the previous state of the file and any error/bug can be tracked and fixed.</p><p>Don’t change the published history<br>If the publish history is changed, it would be very difficult for the older versions to be accessed. In that, if there is a major function that would like to be recalled from the other function which is no more accessible, the aim of a version control system would be defeated. Other way, the publish history should be retained for analysis.<br>Choose a particular workflow</p><p>The workflow of the project should be decided and planed by the team even before the repository and branch are created.</p><p>Divide works into repositories:<br>Efficiency is better achieved when team members are assigned different tasks to do. This means they can work under multiple sub branches individually before it is being merged after all changes might have been reviewed by the admin.</p><p>Backup your work:<br>Backup is necessary as this helps just in case the file online is corrupted or it gets missing or so many other unforeseen circumstances.</p><p>Do not perform git bash until you know what the function does.<br>Some commands on git bash are very rugged as they don’t ask for confirmation before they do they task assigned. Some might ultimately destroy the repo or wipe the branch/repo made. For example:</p><p>Git repack –ad: This deletes the objects in a newly redundant pack, which ultimately cuts the safety belt.<br>Prune reflog: this removes the safety belt.</p><p>Checkout: this overwrites some of the working directory without hope of a recovery.</p><p>Git clean: if run without previously running with “-n”, it deletes unstaged files without hope of a recovery.</p><p>Reset: using reset without committing/staging will overwrite the present working folder without hope of recovery.</p><p>With the above practices, I assure that you would use git to its fullest, due to the implementation of the do’s and don’ts.</p><p>Also visit <a href="https://github.com/joshnh/Git-Commands">https://github.com/joshnh/Git-Commands</a> to check the different commands used to perform different functions. Since we are already accustomed to the above explanation, lets dive into the world of git.<br>Join me <a href="https://github.com/Ade-joshe">https://github.com/Ade-joshe</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b03c69b20ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>