Tag: Git

  • Installing Git on windows

    Installing Git on windows

    Visit https://gitforwindows.org/ and download the latest version of Git software, then press the download button shown.

    The software package we download comes with a bunch of tools that can be very hady like Bash emulation environment where we can run all Git commands and a bunch of Unix like utilities. The downloaded package also comes with GUI that we can use to interact with Git.

    on clicking the Git-2.44.0-64-bit.exe file, the first window we get is the licence of the software as shown

    After scrolling through the licence agreement and being satisfied with tem, click next. The next window is for installation path. If you are an expert user, you may want to change the installation path, but the default path is sufficient for any user.

    The next window let us select additional components to add to our Git installation. By default, Git integrates with the window Explorer to let us run Git command line or the Git Graphical interface in the current folder.

    The software package comes with an extension for improving the support of how large files like audios or videos get stored in the version control system and it is recommendable to leave it checked.

    The installer will register the git configuration files as files that should be opened with a text editor and the .sh files that should be executed with bash.

    There is no harm on enabling all other options, but on my side, i like stability, so i have avoided the ‘check daily for Git for windows updates’. We click next.

    We get prompted for the name of the folder where we want to create all the shortcuts. Accepting the default name ‘Git ‘ is just fine so we go Next.

    Next window will require us choose the code editor. You may want to adjust the default because it may not be the editor you are most comfortable with. Mine has been adjusted to select visual studio code as the default editor.

    Other options includes:

    • sublime Text
    • visual studio code Insiders
    • Atom
    • VsCodium
    • Notepad
    • Wordpad
    • other editors

    ‘Other editor’ option means can select any other editor we want to use by entering the path to the editors executable files.

    The next window let us choose between accepting Git default branch name or let us use our own customized branch name. We leave the second option for the experts and choose the first one.

    The next window let us choose how we want to adjust the path environment.

    Choosing the first option will make Git only accessible through the embedded command line that comes with the bundle.

    The second option which is the selected one by default, allows us to execute Git from the embedded command line and from the Windows Command prompt and also from PowerShell and other softwares that will be looking for Git in path.

    The third option will add the Unix-like tools that comes with Git to the windows Command Prompt. With this option, any commands that have the same name as those in the OS will come from the bundle and not from the basic OS.

    We Choose the second option which was also selected by default and go to Next.

    The next window let us choose how we want to validate the SSL certificates used for HTTPS connections. You choose the second option if you need to interact with your company’s internal systems.

    Here we choose the default one as we will only be interacting with Github.

    The next window let us select what we want to do about the line endings. The Git software let us choose how we want to handle characters used to indicate end of the line as they are different in windows, linux and macOS.

    The first option works well when you are using your windows computer to collaborate with others using a different OS.

    The second option keeps the line endings unchanged when copying the files locally and use Unix endings for the files stored in Git. This would work well if you are using a Unix like OS or if you are only editing through Unix-Like editors on Windows.

    The third option is to do no conversion at all though it doesn’t work well if you are trying to work with people using different OS. It is only suitable if everyone is using the same OS.

    We select the first one.

    The next window let us choose the terminal emulator.

    The software bundle comes with it’s own terminal emulator that includes a bunch of nice features like nice Unicode support and a long history of command we can scroll. We choose the first one which is selected by default.

    The next window let us choose what happens when we pull a file from the Github repository.

    The rest of the windows we should use the selected option by default and move on.

    Go next

    press Next

    Press the install button to install the software

    After installation is complete, you can click finish to launch the git.

    Clicking launch button should launch the MINGW64 command terminal as show, where you can type git commands.

    You may need to check on release notes that is launched together with the commandline window, otherwise you have successfully installed Git in your windows computer

    Related Topics


  • Getting started with Git

    Getting started with Git

    who is Git?

    Git is a version control system that was created in 2005 by Linus Torvalds who was also the brainchild behind the Linux kernel. It was originally created to help manage the task of developing the linux kernel because alot of geographically distributed programmers were being involved in developing the linux system.

    Git is an open source and one of the most popular version control system with millions of projects under if’s care.

    One advantage of Git is that it is a distributed system meaning that every person contributing to a project can maintain the copy of the project they send to a common reservoir in their own development machine.

    Collaborators can share their work and be able to see what others are doing in the project anytime they need to do so. To enhance collaboration in a project, a common directory, usually refered to as the repository is setup on a server so as to act as a common point from which all participants can interact.

    Git can work as a standalone program, as a server or as a client such that you can use it offline and then you can send (push) the files you have created to the online directory once you are connected.

    You can use Git as a server on a machine where you want to host your repository and also as a client to access the repository from another machine or on the same machine.

    Git uses http,ssh or it’s own special protocols to communicate with Git servers over the network.

    Git is suitable for small projects that need one or few developers and also suitable for large project that brings together thousands of contributors. It is useful in tracking private work on personal projects but even more important, it is used to share work with others by hosting a code on public servers like Github,Gitlab and others.

    You can find more about git on git-scm.com which is the official website for Git. Git-SCM stands for Git Source Control management which is the same as Version Control System(VCS).

    One reason Git is soo popular is that it is has a multiplatform support and so it will fit in windows, macOS and linux with ease.

    Installing Git

    Git could already be installed in your computer. To check if it is already there, issue the following command:

    git --version

    To install git, you can use package management systems like:

    For windows installation, you will simply download an executable file and follow prompts. Windows installation comes with a preloaded with a MinGw64 that enables us to operate on windows with the same command and tools used on Linux.

    Related Topics


  • Version Control

    Version Control

    A version control is the practice of tracking and managing changes to software code. In Information Technology, we manage information across a lot of different files . The software developed must be maintained and this involves adding some new codes, deleting some, commenting some lines of code and modifying others. Other times we develop new version of the software that we expect to replace the old one.

    When changing software files, it is very important to keep detailed historical information for changes made in the file because anything can go wrong when you change a software files.

    Few weeks after you make changes, you may not have an idea what changed and so it is important to have a mechanism where you and your team can track what was modified and when incase there is need for troubleshooting.

    Version control provides a documentation trail that will let you and your team know why the infrastructure is the way it is and provides you with mechanism for undoing changes where necessary. Version Control is very hardy in software development as it helps reduce greatly the errors and bugs that maybe introduced when we change a software file.

    To avoid headaches involved in broken codes due to changes done, you can use a version control system to easily roll back your code to a version that was working before the change that caused the breakdown were done.

    Version control helps us revert our system to a particular state that was working at a particular moment.

    It is always safer to go back to a software version that had been working correctly before the change was made so as you can fix problems that occurs in changes without problems of a broken non-working systems when you are trying to solve issues. This gives you time to carefully examine the code instead of making so many quick fixes just to keep the system running.

    Version controls are crucial in maintaining healthy codebase for IT resources and for enabling many people collaborate on the same coding projects smoothly.

    Examples of version control systems includes:

    Related Posts