Git Workflow and Basic Operations in Linux

  

In Linux, Git is mainly used to manage the source code of the software. Of course, Linux Git can also be used to save some private documents. Let's share the Git workflow and basic operations in the Linux system.

1.Git installation (http://www.git-scm.com/download/)

2.Git git config [Configuration]

About the git command query method:

git install root directory /doc/index.html can query, a more convenient way is to use git to make a targeted call through help. (Take the config help documentation as an example: git config --help/git help config)

pro git reference documentation

git's configured information is stored in the user directory (example)

in the .gitconfig file under C:\\Users\\Administrator) Three levels of git configuration:

system (for systems)

global (for current users)

local (for the current operation of the warehouse)

3.git user name additions and deletions

git add users: git config --global --add user.name Username

git delete user: git config --global --unset user.name username

git find user: git config --global --list

4.git Command as alias

git config --global alias.co “checkout” Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved