Posts

Showing posts from June 11, 2018

GIT commands

Image
Major GIT commands with examples Here you will find a list with the major commands, their short descriptions and exemplary usage. For a detailed description of all the GIT commands please visit http://www.kernel.org/pub/ software/scm/git/docs/ Major GIT commands: git configSets configuration values for your user name, email, gpg key, preferred diff algorithm, file formats and more. Example: git config --global  user.name  "My Name" git config --global user.email " user@domain.com " cat ~/.gitconfig [user] name = My Name email =  user@domain.com git initInitializes a git repository – creates the initial ‘.git’ directory in a new or in an existing project. Example: cd /home/user/my_new_git_folder/ git init git cloneMakes a Git repository copy from a remote source. Also adds the original location as a remote so you can fetch from it again and push to it if you have permissions. Example: git clone git@github.com:user/test.git git addAdds files changes in you...