Table of Contents
1. In the ~/ directory, touch to create the file.Git-credentials
2. Execute in the terminal
3. You can see~/ .gitconfig file, there will be one more item:
4. Execute the git command again
Home Operation and Maintenance Linux Operation and Maintenance Four steps to set up Linux git command without entering password

Four steps to set up Linux git command without entering password

Sep 10, 2021 pm 05:08 PM
git linux

The following column linux system tutorial will introduce to you how to set the git command under Linux without entering a password. I hope it will be helpful to friends in need!

1. In the ~/ directory, touch to create the file.Git-credentials

touch .git-credentials
vim .git-credentials

Click "i" to enter Edit file mode

https://{username}:{password}@github.com
例如 
https://zhang3:12345@github.com

Click "ESC" and then enter ":wq" to exit editing and save

2. Execute in the terminal

git config --global credential.helper store

3. You can see~/ .gitconfig file, there will be one more item:

vi .gitconfig Enter
and you can see
[credential]

helper = store

4. Execute the git command again

You only need to enter the correct account and password once. You can skip entering the account and password directly in the future

Recommended learning: "linux video tutorial"

The above is the detailed content of Four steps to set up Linux git command without entering password. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1598
276
How to achieve financial freedom in the currency circle with a 10,000 principal? Practical experience is revealed! How to achieve financial freedom in the currency circle with a 10,000 principal? Practical experience is revealed! Aug 12, 2025 pm 07:12 PM

Using ten thousand principal to gain wealth freedom in the magnificent currency market is a tempting topic and a thorny road. This is not a simple math game, it tests a person's cognition, mentality, execution and luck. The following content is not investment advice, but an analysis of the challenges that may be encountered on this road and the practical experience required to be literate.

Wall Street Whale Devours Ethereum: Interpretation of the Pricing Power Battle Behind Purchase 830,000 ETH in 35 Days Wall Street Whale Devours Ethereum: Interpretation of the Pricing Power Battle Behind Purchase 830,000 ETH in 35 Days Aug 22, 2025 pm 07:18 PM

Table of Contents Two ancestry, two worldviews: The philosophical showdown between OG coins hoarding and Wall Street harvesting. Financial engineering dimensionality reduction strike: How BitMine reconstructs ETH pricing power in 35 days. New dealer spokesperson: TomLee and Wall Street narrative manipulation ecological reconstruction: How Wall Street Capital reshapes the ETH value chain. A small company that was originally unknown in Nasdaq increased its holdings from zero violence to 830,000 in just 35 days. Behind it is a survival philosophy showdown between the indigenous people in the currency circle and Wall Street Capital. On July 1, 2025, BitMine's ETH position was still zero. 35 days later, this family is unknown

Is there any currency worth ambushing in the primary market of the currency circle? Is there any currency worth ambushing in the primary market of the currency circle? Aug 14, 2025 am 11:00 AM

Xu Kun of Huaxing Capital pointed out that although the investment volume of the primary market fell month-on-month in the first quarter of 2025, AI big model and embodied intelligence became the focus of capital, valuation logic differentiation appeared, open source model focused on ecological coordination, closed source model focused on commercialization, embodied intelligence entered the capital focus period, and commercialization verification became the key; at the same time, the market's "28 effect" was highlighted, state-owned assets led the fundraising, the advantages of leading institutions were strengthened, and small and medium-sized institutions were under pressure.

How to clean up your Linux system How to clean up your Linux system Aug 22, 2025 am 07:42 AM

Removeunusedpackagesanddependencieswithsudoaptautoremove,cleanpackagecacheusingsudoaptcleanorautoclean,andremoveoldkernelsviasudoaptautoremove--purge.2.Clearsystemlogswithsudojournalctl--vacuum-time=7d,deletearchivedlogsin/var/log,andempty/tmpand/var

UK policy shift: Approve retail trading of cryptocurrency ETN, intending to build a crypto hub UK policy shift: Approve retail trading of cryptocurrency ETN, intending to build a crypto hub Aug 11, 2025 am 09:54 AM

Catalog Community Reaction to FCA's Release of Crypto Exchange Trading Notes (cETN) Ban Encryption Derivatives Still Being Banned. Riccardo Tordera of ThePayments Association told Cointelegraph that the lifting of the ban allows individual investors to make decisions at their own risk. The UK Financial Conduct Authority (FCA) has lifted restrictions on retail investors' participation in crypto exchange-traded notes (cETNs), a move that has received a positive response from industry leaders and is seen as an important step in promoting the UK's integration into the global digital asset ecosystem and enhancing its competitiveness as a financial technology hub. On Friday, the FCA officially announced the withdrawal of previous investments in retail customers.

How to identify current trends/narratives in the crypto market? Methods for identifying current trends in crypto markets How to identify current trends/narratives in the crypto market? Methods for identifying current trends in crypto markets Aug 26, 2025 pm 05:18 PM

Table of Contents 1. Observe the tokens with leading gains in the exchange 2. Pay attention to trend signals on social media 3. Use research tools and institutional analysis reports 4. Deeply explore on-chain data trends 5. Summary and strategic suggestions In the crypto market, narrative not only drives capital flow, but also profoundly affects investor psychology. Grasping the rising trend often means higher returns potential; while misjudgment may lead to high-level takeovers or missed opportunities. So, how can we identify the narrative that dominates the market at present? Which areas are attracting a lot of capital and attention? This article will provide you with a set of practical methods to help you accurately capture the hot pulse of the crypto market. 1. The most intuitive signal of observing the leading tokens on the exchange often comes from price performance. When a narrative begins

​​192.168.10.1 login portal (Period routing/Asus management page)​​ ​​192.168.10.1 login portal (Period routing/Asus management page)​​ Aug 12, 2025 pm 10:18 PM

First, confirm that the device is connected to the Wi-Fi of the target router or connected through a network cable; 2. Enter http://192.168.10.1 in the browser address bar and press Enter; 3. Enter the correct username and password (default is often admin/admin or view the back of the router); 4. If it cannot be opened, check whether it is connected to the wrong network, confirm the correct IP address (you can view the default gateway through ipconfig), restart the router, change the browser or turn off the firewall; 5. After logging in, you can modify the Wi-Fi name password, set security options, configure port forwarding, enable guest network, upgrade firmware, etc.; 6. If you forget your password, you can reset the factory settings by pressing and holding the router reset hole for 5-10 seconds, but all configurations will be cleared.

how to create an alias in linux how to create an alias in linux Aug 19, 2025 pm 08:13 PM

The steps to set up alias in Linux are as follows: 1. Temporarily set the use of the alias command such as aliasll='ls-la'; 2. Permanently set the shell configuration file, such as ~/.bashrc, and then execute the source to take effect; 3. Be careful to avoid overwriting the original command and the different shell configurations are independent. Alias can simplify complex commands and improve efficiency, but only after the current shell environment takes effect and closes the terminal, it needs to be reasonably defined and regularly checked for configuration.

See all articles