Git-Gitlab-Genkins continuous integration

Git commonly used commands:

  1. Create your account and mailbox
    git config --global user.name
    git config --global user.email
    CAT .gitconfig
  2. Initialize git
    git the init

  3. Add from a local directory to the staging area
    git the Add.
    Git the Add *

  4. Add to a local warehouse from scratch
    git commit -m "description text"

  5. Modify the file name
    git mv a a.txt

  6. Delete the file name
    git rm -f filename

  7. Check local directory and the temporary difference between
    git diff a

  8. Check local warehouse and the staging of the difference between
    git diff --cached a

  9. View historical Mirror
    git log
    git reflog more detailed image

  10. From scratch fall back to the local directory
    git checkout a

  11. From local warehouse to fall back to the staging area
    git reset HEAD a

  12. Fall back to a specific image
    git reset --hard

Guess you like

Origin www.cnblogs.com/lishi-jie/p/11883892.html