Git tips, dnf tips for hitting pets

Source: Internet
Author: User

Git tips, dnf tips for hitting pets

When you enter the git command, you can press the tab key twice to view the candidate command.

For example:

Git co <tab>

Commit config

At this time, input m <tab> to automatically select and complete the command as git commit.


After entering the command, forget the name of the option. You can enter several letters at the beginning and press the tab key.

For example:

Git log -- s <tab>

-- Unzip stat -- since = -- src-prefix = -- stat -- summary



Ignore the. gitignore file during git version library import:

Use git add. add all project files to the version library for the first time. If there is a. gitignore file in the project file, files that comply with the. gitignore rule cannot be submitted to the version library.

There are two ways to add them:

1. Change gitignore rules

2. Force add: git add.-f (the-f parameter indicates force add, which forces all files to be added here)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.