git Please make sure you have the correct access rights and the repository exists

前言:

git执行命令,报下面错误。
在这里插入图片描述

解决方案:

1、首先删除自己电脑上.ssh文件夹内容
在这里插入图片描述
2、输入下面命令,然后一直回车

ssh-keygen -t rsa -C “username”
其中 username 是你的git账户名

在这里插入图片描述

3、查看公钥内容

cat ~/.ssh/id_rsa.pub

在这里插入图片描述
在这里插入图片描述
上图中除了最后的我们的用户名之外,其他的都是公钥内容。

4、打开码云页面中我的设置,将刚才获得公钥 复制到里面即可。
在这里插入图片描述

Git is a distributed version control system, widely used in software development to manage and track changes made to code repositories over time. It was designed by Linus Torvalds for the Linux kernel project and has since become the de facto standard for managing source code collaboration. Here's a brief overview of key concepts in Git: 1. Repository: A Git repository is a central location where all the files and their versions are stored. Each repository has a local copy on your computer, as well as a remote copy on a server or online platform like GitHub. 2. Working directory: This is the folder on your local machine that contains the latest version of the files from the repository. You can make changes here and stage them for committing. 3. Commit: A commit is a snapshot of the current state of your working directory. It includes all changes, along with a message describing what you've done. Commits are saved locally and can be pushed to the remote repository. 4. Branches: In Git, you can create multiple branches, which are separate lines of development. This allows developers to work on different features or bug fixes without interfering with each other's work. 5. Merge: When a branch is ready to be integrated into the mainline code, developers can merge the changes from one branch into another using `git merge`. 6. Pull request: A pull request is a way to propose changes to a shared codebase. You create a request on a remote repository, asking others to review and potentially merge your changes. 7. Stashing: If you need to switch between tasks but don't want to lose your changes, Git allows you to stash them temporarily.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值