Compare commits

..

1 Commits

Author SHA1 Message Date
JiangXiuyu b31ef8c508 update 2022-07-07 11:45:49 +08:00
6 changed files with 2 additions and 109 deletions

3
.gitattributes vendored
View File

@ -1,3 +0,0 @@
*.txt linguist-language=text
*.md linguist-language=text
*.png linguist-language=text

View File

@ -1,36 +0,0 @@
# git.test
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -6,7 +6,7 @@
## 2.登录 ## 2.登录
**git config --global user.name "JiangXiuyu" /*配置用户名称 global 代表优先级中级*/** **git config --global user.name "JiangXiuyu" /*配置用户名称*/** **/*global 代表优先级中级*/**
**git config --global user.email "422334010@qq.com" /*配置邮箱*/** **git config --global user.email "422334010@qq.com" /*配置邮箱*/**

View File

@ -1,68 +0,0 @@
git局域网访问http://192.168.1.138:2700/
外部访问http://39.82.85.250:2700/
外部访问http://119.162.215.209:2700/
git下载地址
http://git-scm.com/downloads
登录问题解决的地址
https://www.cnblogs.com/goloving/p/14782692.html
https://blog.csdn.net/jsklnice/article/details/121471232
克隆超时解决地址
https://www.cnblogs.com/etangyushan/p/8992926.html
克隆git clone http://xxxx/xxxx.git
<1>git push未经授权
解决方法重置git的认证设置
git config --system --unset credential.helper
然后在git push的时候重新输入git的账号和密码即可
备注每次操作都输入账号密码比较麻烦输入下面命令保存账号密码第2次生效
git config credential.helper 'cache --timeout=3600'
git每次都要输入密码记住密码方法
https://blog.csdn.net/weixin_43795761/article/details/125011382
1、首先在Git.bash文件中输入命令
git config --global credential.helper store
2、然后你会发现你的C:\Users\用户名xx.gitconfig**文件会多出以下代码:
[credential]
helper = store**
3、紧接着使用git pull或者git push 命令根据提示输入帐号和密码。这时你的本地生成一个类似C:\Users\用户名xx.git-credentials文件用于记录帐号密码。
完成以上几步,下次就不用再次输帐号密码了。
登录用户账号
git config --global user.name "蒋修裕"
git config --global user.email "422334010@qq.com"
git remote add origin https://gitee.com/jiang-xiuyu/wem-iii.git
<2>文件上传
git status -s
git commit -m "添加到远程"
git push origin master
<3>文件夹上传(含文件)
1.cd 文件夹
2.git add .”(注意“. ”不要省略)
3.git commit -m "备注"
4.git push -u origin master
<4>删除远程仓库文件
git pull origin master
git rm --cached 文件名/git rm -r --cached 文件夹名
git commit -m update
git push -u origin master //提交到仓库
<5>如何建立分支
https://blog.csdn.net/qq_37899792/article/details/121328761
<6>如何删除分支
本地git branch -d (branchname)
线上git push origin --delete (branchname)
http://192.168.1.138:2700/JiangXiuyu/demo.git
http://192.168.1.138:2700/JiangXiuyu/demo.git
<7如何克隆分支>
git checkout -t origin/<分支名称>
<8>强制覆盖本地代码与git远程仓库保持一致//谨慎使用,是将本地数据覆盖掉,用于同步本地
git fetch --all && git reset --hard origin/master && git pull

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB