git初始化备份

快速设置— 如果你知道该怎么操作,直接使用下面的地址
HTTPS
SSH
我们强烈建议所有的git仓库都有一个README, LICENSE, .gitignore文件
Git入门?查看 帮助 , Visual Studio / TortoiseGit / Eclipse / Xcode 下如何连接本站, 如何导入仓库
简易的命令行入门教程:
Git 全局设置:
git config --global user.name “xx”
git config --global user.email “[email protected]
创建 git 仓库:
mkdir 文件夹名
cd 文件夹名
git init
touch README.md
git add README.md
git commit -m “first commit”
git remote add origin https://gitee.com/xx/xx.git
git push -u origin master
已有仓库?
cd existing_git_repo
git remote add origin https://gitee.com/xx/xx.git
git push -u origin master

帮助

Eclipse插件

导入git仓库

其他问题

push错误

git config --global credential.helper store

重输入用户名密码?(2020-1-19 0:37:12)

一个新方案

[root@ ~]# cat .gitconfig 
[user]
	name = g*****
	email = *********@qq.com

(2020-1-19 0:43:05)
照做了.还是有错.

error: The requested URL returned error: 401 Unauthorized while accessing https://gitee.com/*****.git/info/refs

fatal: HTTP request failed

(2020-1-19 1:15:02)

重设url

git remote set-url origin 你的git项目地址

(2020-1-19 1:22:13)

clone也有问题

[root@ testgit]# git clone https://gitee.com/***.git
Initialized empty Git repository in /root/**/.git/
error: The requested URL returned error: 401 Unauthorized while accessing https://gitee.com/***.git/info/refs

fatal: HTTP request failed

(2020-1-19 1:26:25)
明天配置.账户问题.?Linux
todo

发布了65 篇原创文章 · 获赞 16 · 访问量 5039

猜你喜欢

转载自blog.csdn.net/gwdfff/article/details/104035221