[Learning] Basic Configuration Git Git's

After installing Git, you can see the desktop has icons appear. We can also see the right mouse button "Git Bash Here" option, which is operated by Git console program.

 

1. The primary configuration

1.1 open Git Bash personal information configuration.

Git Bash use Linux commands to operate.

 

1.2 View Configuration

 

 

 

Every Git will be used to submit personal user name and mailbox information, it is forever embedded into submission.

2.Git basic theory (core)

2.1 Git work area

 

 

 2.2 Git's submission process

  

 

  a. Stage added to the staging area from the working directory by -git add files command.

  b. the code from scratch Stage will be submitted to a local Git repository by -git commit command.

  c. submit to a remote repository used -git push command from a local Git repository.

  In turn, the same principle.

  These codes need to memorize commands. It will be frequently used.

  Working Directory: local computer code stored position.

  Stage (Index): a temporary storage area, just an ordinary file. About to save the information submitted.

  Repository: location of the local repository, the safe storage of code. Including all of the data submitted.

  Remote: remote repository server, managed code. For example: Github, cloud code.

 

  

 

 

 

 

 6 2.3 Common command

 

 3. Create a local repository

  3.1 Creating a new warehouse git init

  3.2 cloning remote directory

  

 

 4. Ignoring Files

 

   The above is some knowledge about himself in learning Git learned, thanks to point out any errors.

Guess you like

Origin www.cnblogs.com/Yddd-G/p/12577231.html