search
HomeDevelopment ToolsgitHow to configure local account and password on gitee (steps)

Before using Gitee for code hosting and team collaboration, you need to configure a local account and password. The following are the specific steps:

  1. Register and log in to the Gitee official website;
  2. Find the "Access Token" tab in the account settings, create a new Access Token, and save the Token value locally, which will be used later;
  3. Download and install the Git client, after the installation is complete Enter the following command line in the command line window:
git config --global user.name "你的Gitee用户名"
git config --global user.email "你的Gitee注册邮箱"
git config --global credential.helper store

The third line of command is to save the local username and password to avoid having to enter them every time. If you do not add this command, you will need to enter your account and password during each push and pull operation.

  1. Next, you need to set up SSH communication between local Git and Gitee, and add Access Token to the SSH key. The specific steps are as follows:
ssh-keygen -t rsa -C "你的Gitee邮箱"

At this time, It is required to enter the SSH key storage path. You can directly press "Enter" to use the default path. You will then be asked to enter a password, you can also press the "Enter" key to skip it.

cat ~/.ssh/id_rsa.pub | pbcopy

The above command is to copy the contents of the id_rsa.pub file to the pasteboard and wait for the next step to paste.

  1. Go back to the Gitee official website, find the SSH Keys tab in the account settings, create new SSH Keys, and add the Access Token copied in the pasteboard to the Key value;
  2. Finally, use the following command to test:
ssh git@gitee.com

If "Hi XXX! You've successfully authenticated, but Gitee.com does not provide shell access." appears, the configuration is complete. Now you You can freely use Gitee to host your own code.

It should be noted that the above steps are for push and pull operations from the local code base to Gitee. If you need to clone the local code base from Gitee, you need to configure the "SSH public key" in Gitee. .

The above is the detailed content of How to configure local account and password on gitee (steps). For more information, please follow other related articles on the PHP Chinese website!

Statement
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
Using Git with GitHub: A Practical GuideUsing Git with GitHub: A Practical GuideMay 07, 2025 am 12:11 AM

Git is a version control system, and GitHub is an online platform based on Git. The steps to using Git and GitHub for code management and team collaboration include: 1. Initialize the Git repository: gitinit. 2. Add files to the temporary storage area: gitadd. 3. Submit changes: gitcommit-m"Initialcommit". 4. Related to the GitHub repository: gitremoteaddoriginhttps://github.com/username/repository.git. 5. Push code to GitHub: gitpush-uoriginmaste

GitHub's Impact: Software Development and CollaborationGitHub's Impact: Software Development and CollaborationMay 06, 2025 am 12:09 AM

GitHub has a far-reaching impact on software development and collaboration: 1. It is based on Git's distributed version control system, which improves code security and development flexibility; 2. Through functions such as PullRequest, it improves team collaboration efficiency and knowledge sharing; 3. Tools such as GitHubActions help optimize the development process and improve code quality.

Using GitHub: Sharing, Managing, and Contributing to CodeUsing GitHub: Sharing, Managing, and Contributing to CodeMay 05, 2025 am 12:12 AM

The methods of sharing, managing and contributing code on GitHub include: 1. Create a repository and push code, and write README and LICENSE files; 2. Use branches, tags and merge requests to manage code; 3. Fork the repository, modify and submit PullRequest contribution code. Through these steps, developers can effectively use GitHub to improve development efficiency and collaboration capabilities.

Git vs. GitHub: A Comparative AnalysisGit vs. GitHub: A Comparative AnalysisMay 04, 2025 am 12:07 AM

Git is a distributed version control system, and GitHub is a Git-based collaboration platform. Git is used for version control and code management, while GitHub provides additional collaboration features such as code review and project management.

Git vs. GitHub: Understanding the DifferenceGit vs. GitHub: Understanding the DifferenceMay 03, 2025 am 12:08 AM

Git is a distributed version control system, and GitHub is an online platform based on Git. Git is used for version control, branch management and merger, and GitHub provides code hosting, collaboration tools and social networking capabilities.

GitHub: The Frontend, Git: The BackendGitHub: The Frontend, Git: The BackendMay 02, 2025 am 12:16 AM

Git is a back-end version control system, and GitHub is a front-end collaboration platform based on Git. Git manages code version, GitHub provides user interface and collaboration tools, and the two work together to improve development efficiency.

The Ultimate Showdown: Git vs. GitHubThe Ultimate Showdown: Git vs. GitHubMay 01, 2025 am 12:23 AM

Git is a version control system, and GitHub is a Git-based code hosting platform. Git is used to manage code versions and history, and GitHub provides code hosting and collaboration capabilities. Git is suitable for all projects that require version control, GitHub is suitable for team collaboration and open source projects.

Git vs. GitHub: A Developer's PerspectiveGit vs. GitHub: A Developer's PerspectiveApr 30, 2025 am 12:14 AM

Git is a distributed version control system, and GitHub is an online platform based on Git. Git provides version control features such as branch management and commit history; GitHub provides collaboration tools such as code review and project management.

See all articles

Hot AI Tools

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.

Undress AI Tool

Undress AI Tool

Undress images for free

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

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.