![]() This command is used to check the current branch and to display the git branch names list available. Cmd: git commit Branches and Tags Commands Options we can use with : ‘-m’ to specify commit message. This command is used to commit the recently added files to the branch and save changes to project/repository. Commit staged local changes in tracked files.This command is used to add the newly added or modified files to current branch. Simply shows the newly added/removed/modified contents in repository/project/files. This command is used to check the difference bet the last version of files and the current version of modified files. If files were modified then it will shows the list of files/directories which gets modified. This command is used to check the status of project files whether they modified or not. Check the changed files in your working directory. ![]() It allows you to direct Git that how you want it to function for you.īasic Git commands that usually needs to perform Git operations: Create Commands Git adds this information to each of your change and operations in git and let others people(who are working on same repo/code/project) identify which changes you made. ![]() Another one is with –local option which only applies to the repository where you are running this command. Git config -global user.email are the level of configuration we can do, one is with –global option which basically works as the default configuration for all git repository setup on your system. git config -global user.name "Suhas Gavad" You can use the following command to do same. After initializing Git in the directory you should link your username and email address to your Git profile. It allows you to instruct Git like any other software that how you want it to function for you. This is the first tasks while setting up your Git environment. We need to do some basic ‘set-up’ for git like every tool/software needs to do while installation. This command is used to create the new git repository, simply it initiates new repository where we can store the project files and track them easily. To do this we can use ‘git init’ command. To start with Git need to make project directory as Git repository usually we called it as ‘Local Repository’. It is designed to manage source code mainly, which enables team members to work on the same code at the same time without overwriting each other’s changes as well as to keep track of individual changes as a separate version. Git is a Version control system, specifically a version control system for tracking changes in computer files (mainly in project directory). 08 December 2017 What is Git and why we are using it?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |