Now you'll want to tell Git "Look, this is the folder/directory where I want Git to work in right now." Checking your configuration Initializing your Repository If your configuration was successful, you'll have your username and email address returned once you type in these commands and hit enter. To check if your configuration has been added, type in git config -global user.nameto check your username and git config -global user.emailto check your email. In the instance below, my GitHub username is emmanuellar while my email address is Configuring git on your device Open up git bash, then use the command git config -global user.name "Your name" to configure your username and git config -global user.email "Your email" to configure your email. Now, let's set up our Git globally by configuring our username and email (if this is your first time using Git). You can create yours by typing touch index.html inside the babysteps2git folder (this should be done from your command prompt) or you can create one from your text editor. I created it from my favorite command line Interface, Cmder. Inside this babysteps2git folder, we have a file, index.html, which we'll be using for instances. A new folder created just for this Git tutorial We'll be using it as our local repository throughout this article. Setting Up your Git Bashįor the purpose of this tutorial, we'll be creating a new folder, which I've named babysteps2git. Recap: Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. You can just upload your code and track changes made in a project for future use. GitHub, on the other hand, is an open-source cloud-based collaboration platform that allows developers to easily share software and collaborate on different projects.Įveryone from open source projects to private teams and individual projects can use GitHub. It was made by Linus Trovalds (the creator of the Linux operating system). Git is a version control system that is used to track changes that are made to a file or project. Now let's go ahead and learn about version control. You'll also need to download and install git bash from or (if you're running a Windows PC). If you don't, just head over to GitHub to create one. I assume you already have an account on GitHub. Updating your git repository (local and remote).Syncing your remote repository to your local repository.This article will help you learn the basics of Git and versioning in order to effectively collaborate and manage your software projects. It helps you manage changes to your projects or programs. Version control is something all software developers should know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |