Install git lfs red hat1/2/2023 ![]() ![]() $ vi README.mdĮnter in info about your project, save and exit. You can add any type of file to your GIT project, but for now, let’s generate a “ README.md” file that gives a little info about your project (also shows up in the README block at GitHub) and add some source files. Now that we have a repository created, we need to add some files to the project. If at any time you no longer wish for any directory to be a part of a GIT repository, you just delete this directory in the typical fashion: $ rm –rf. This directory is where GIT stores all of its information about your project, and any changes that you make to it. In that directory, a new hidden directory has been created called “. ![]() cd to one that has some source files and do the following: $ cd /home/rk/python-web-scraper You can make any directory a GIT repository. ![]() Now we are going to create our first repository. Let’s give it your name and your email: $ git config –-global user.name “Your Name” In your home directory, there will be a file called “ ~/.gitconfig“. Now that GIT is installed, let’s set it up. If you prefer to install and compile it form source, you can follow below commands. On Red Hat/ CentOS/ Fedora/ systems, you can install it using yum command. On Debian/ Ubuntu/ Linux Mint, if it is not already installed, you can install it using apt-get command. You will need to go to and create an account and repository if you wish to upload your project there. In this tutorial, we are going to install GIT, create a repository, and upload that repository to GitHub. This model provides many advantages, the most obvious being that if you are disconnected from your central server for whatever reason, you still have access to your project. Once you are finished, you then merge the project back to the repository. In other words, you download the project with everything, the source files, version changes, and individual file changes right to the local machine, when you check-in, check-out, and perform all of the other version control activities. Instead of downloading a project, making changes, and uploading it back to the server, GIT makes the local machine act as a server. Whereas CVS and SVN use the Client/ Server model for their systems, GIT operates a little differently. It was designed to be a superior version control system to those that were readily available, the two most common of these being CVS and Subversion (SVN). GIT is a distributed version control system that was created by Linus Torvalds, the mastermind of Linux itself. If you have spent any amount of time recently in the Linux world, then chances are that you have heard of GIT. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |