Git only sees files that have changed, so add some text to it using echo: $ echo "Hello" > test.txtĬheck the git status and add: $ git status Initialized empty Git repository in /Users/SudeshnaSur/Test/.git/ Navigate to any folder where you want to initialize Git: $ cd Documents Give hub a spin using a new repository you will host on GitHub. Voila! You have successfully installed hub. The output shows the versions of both hub and Git. Next, verify hub is installed correctly by checking its version: $ hub -version To learn more about how it works, see the documentation. Since we didn't use sudo, the installation script installs Homebrew to ~/.linuxbrew. To install brew, Homebrew's command-line utility, on Fedora: $ /bin/bash -c "$(curl -fsSL )" If you prefer another installation method, see the Git documentation. It can be installed in your home directory, which means you don't need sudo permission to install applications with it. Homebrew was previously known as Linuxbrew on Linux, but it now uses the same name as the macOS version. Don't worry if it's missing you can quickly install it using Homebrew, an open source package manager, or the built-in package manager for your distribution (dnf, apt, etc). I like Homebrew, so we will stick with that. The use of hub depends on Git, so first, confirm we have it installed: git -version So, if you're tired of point-and-click GUIs but want some help with Git's sometimes confusing syntax, hub is the tool for you.īefore reading further, it's a good idea to review Git terminology first. I recently came across hub, a command-line tool that extends Git by adding GitHub-specific features to make it easier to become familiar with Git commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |