Git version management tools

1.Git Profile

       Git (pronounced / gɪt /.) Is an open source distributed version control system that can efficiently at high speed version management process from very small to very large projects.  Git is  Linus Torvalds  To help manage Linux kernel development and the development of an open source version control software.

2. Install Git

       Official Download Link: https://git-scm.com/downloads/

3.Git use

  --Git storage (storage folder is created in the folder, right-click and select Git Bash Here)
    command: Git init

  - Configure personal information
    command: git config --global user.name "username"
    git config --global user.email "email address"

  - the code stored in the Git repository (documents to be placed in the project directory)
    command: git add + file path
    git commit -m + file description

  - Check the status
    command: git status

  - View Log
    command: git log
    git log --oneline concise version of the
    command: git reflog View all operation logs

  - version rollback
    command: git reset --hard Head ~ 0 0 : a rollback
    command: git reset --hard + fallback version number specified version

  - create a branch
    command: git branch + branch name
    command: git branch -d + branch name deleted branches

  - Switch branch
    command: gir checkout + branch name

  - Merge Branches
    command: git merge + branch name

  - submit code to GitHub
    - New Warehouse (Github)
    - Upload
      command: git push + new branch name + address storage
    - download
      command: git pull + + warehouse address branch name


  --ssh upload codes
    - generation of public and private
      command: ssh-keygen -t + encryption (rsa) + C + mailbox
    - uploading, downloading supra (address into ssh)

Guess you like

Origin www.cnblogs.com/CGWTQ/p/Git.html