当前位置: 首页 > news >正文

java建站系统开鲁seo网站

java建站系统,开鲁seo网站,宁波做网站 主觉文化,浙江高速建设公司网站📖 前言:由于CentOS 7已于2024年06月30日停止维护,为了避免操作系统停止维护带来的影响,我们将把系统更换为Ubuntu并迁移数据,在此之前简要的学习Git的上传下载操作。 目录 🕒 1. 连接🕘 1.1 配…

📖 前言:由于CentOS 7已于2024年06月30日停止维护,为了避免操作系统停止维护带来的影响,我们将把系统更换为Ubuntu并迁移数据,在此之前简要的学习Git的上传下载操作。


目录

  • 🕒 1. 连接
    • 🕘 1.1 配置Linux上git环境
    • 🕘 1.2 为GitHub账户设置SSH key
  • 🕒 2. 上传本地项目到GitHub
  • 🕒 3. 克隆GitHub项目到本地
  • 🕒 4. 同步修改项目
  • 🕒 5. 常见问题
  • 🕒 6. 更换操作系统

🕒 1. 连接

🕘 1.1 配置Linux上git环境

安装git:yum install git
绑定GitHub用户:
git config --global user.name "XXX"
git config --global user.email "xxx@xxx.com"
查看git配置:git config --list

🕘 1.2 为GitHub账户设置SSH key

  1. 检查是否有SSH key:cd ~/.ssh
  2. 如没有,则去生成SSH key:ssh-keygen -t rsa -C "your_email@youremail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/you/.ssh/id_rsa): # 默认回车
Enter passphrase (empty for no passphrase):  # 默认回车
Enter same passphrase again:  # 默认回车
Your identification has been saved in /home/XXX/.ssh/id_rsa. 
Your public key has been saved in /home/XXX/.ssh/id_rsa.pub.
The key fingerprint is: XXX
  1. 添加SSH公钥到GitHub:
    在GitHub设置内找到添加SSH,将id_rsa.pub内容复制到key中(直接使用cat id_rsa.pub,而不是打开vim复制)

在这里插入图片描述

  1. 测试是否连接成功:ssh -T git@github.com

在这里插入图片描述

🕒 2. 上传本地项目到GitHub

  1. 进入你想要上传的目录,然后把这个目录变成git可以管理的仓库:git init

  2. 将文件添加到仓库并查看当前工作区(相当于缓存区)的状态

添加文件:git add [文件名]
查看缓存区的内容:git status

在这里插入图片描述

  1. 将工作区文件提交到本地仓库,如下图,“backup file”是描述你提交的文件内容的

查看已存放在本地仓库(缓存区)的内容:git ls-files

如果不慎将不需要的文件添加到缓冲区,可以用该指令删除:git rm -r --cached .

  1. 关联远程仓库,同一个目录下同一个远程仓库只要关联一次就行,origin是你关联仓库的当前连接的名字,origin后面跟的是第一步复制的SSH连接。

在这里插入图片描述

  1. 到目前为止,你已经把你想上传的文件放到本地仓库上了,也已经把本地仓库和远程仓库连起来了,现在需要把文件从本地仓库push到远程仓库git push origin master

注:通常在Linux上init后主分支是master,而GitHub上新建的仓库,默认主分支是main,所以直接push过去,会默认在GitHub远程仓库创建master分支。
在这里插入图片描述
解决办法是将本地的master分支改名为main分支;或 push的时候指明git push origin master:main
在这里插入图片描述

查看目前已经关联的远程仓库:git remote
在这里插入图片描述

🕒 3. 克隆GitHub项目到本地

指令:git clone [项目名]
在这里插入图片描述

🕒 4. 同步修改项目

以同步删除文件夹为例:
1、rm -rf [文件夹名]
2、git rm -r [文件夹名]
3、git commit -m "remove" [文件夹名]
4、git push origin master:main

🕒 5. 常见问题

  1. github文件夹有向右的白色箭头并且不能打开

在这里插入图片描述
原因是因为这个文件夹里面有.git隐藏文件,github就将他视为一个子系统模块了。

解决办法:
1、删除文件夹里面的.git文件夹(rm -rf .git
2、执行git rm --cached [文件夹名]
3、执行git add [文件夹名]
4、执行git commit -m "remove"
5、执行git push origin [branch_name]

  1. 有很多无用的隐藏文件上传至GitHub

解决方案:创建一个.gitignore文件并编辑

# .gitignore文件# 忽略所有隐藏文件和目录
.*
# 忽略文件名为空的文件
**
# 忽略.文件                                                  
.sh
# 忽略位于根目录下的 text.txt 文件
/text.txt

🕒 6. 更换操作系统

非常简单,按照提示操作即可。
在这里插入图片描述在这里插入图片描述


❗ 转载请注明出处
作者:HinsCoder
博客链接:🔎 作者博客主页


文章转载自:
http://spirally.c7627.cn
http://charactery.c7627.cn
http://worksheet.c7627.cn
http://biomathematics.c7627.cn
http://incognizable.c7627.cn
http://contrasuggestible.c7627.cn
http://spinozism.c7627.cn
http://croquembouche.c7627.cn
http://per.c7627.cn
http://offender.c7627.cn
http://cystocarp.c7627.cn
http://bagassosis.c7627.cn
http://temporariness.c7627.cn
http://geta.c7627.cn
http://accept.c7627.cn
http://sastisfactory.c7627.cn
http://theorist.c7627.cn
http://radiotelegrapm.c7627.cn
http://transmural.c7627.cn
http://morally.c7627.cn
http://glorious.c7627.cn
http://beadhouse.c7627.cn
http://oateater.c7627.cn
http://dummkopf.c7627.cn
http://ephemeral.c7627.cn
http://rheostat.c7627.cn
http://petn.c7627.cn
http://dividers.c7627.cn
http://kerman.c7627.cn
http://pimple.c7627.cn
http://individualize.c7627.cn
http://subvertical.c7627.cn
http://walleyed.c7627.cn
http://vantage.c7627.cn
http://klischograph.c7627.cn
http://smallish.c7627.cn
http://ruhmkorff.c7627.cn
http://comptometer.c7627.cn
http://barium.c7627.cn
http://divaricately.c7627.cn
http://samothrace.c7627.cn
http://skimeister.c7627.cn
http://garrigue.c7627.cn
http://metalize.c7627.cn
http://pleurectomy.c7627.cn
http://tricentennial.c7627.cn
http://nonneoplastic.c7627.cn
http://geopressured.c7627.cn
http://fleshiness.c7627.cn
http://canine.c7627.cn
http://mispronounce.c7627.cn
http://tsadi.c7627.cn
http://killed.c7627.cn
http://brag.c7627.cn
http://oligophrenia.c7627.cn
http://nervine.c7627.cn
http://allodially.c7627.cn
http://collegiate.c7627.cn
http://commorant.c7627.cn
http://watermelon.c7627.cn
http://hyposecretion.c7627.cn
http://defeatism.c7627.cn
http://torus.c7627.cn
http://scarves.c7627.cn
http://inconsiderably.c7627.cn
http://premier.c7627.cn
http://store.c7627.cn
http://sheathe.c7627.cn
http://anticrop.c7627.cn
http://cytotaxonomy.c7627.cn
http://semidwarf.c7627.cn
http://juanita.c7627.cn
http://interpretation.c7627.cn
http://nitrazepam.c7627.cn
http://inositol.c7627.cn
http://crappy.c7627.cn
http://scalariform.c7627.cn
http://creatureliness.c7627.cn
http://caveator.c7627.cn
http://multipartite.c7627.cn
http://neoterism.c7627.cn
http://hodgepodge.c7627.cn
http://mannequin.c7627.cn
http://photons.c7627.cn
http://leat.c7627.cn
http://incubate.c7627.cn
http://unimposing.c7627.cn
http://electroplate.c7627.cn
http://gyrostabilized.c7627.cn
http://whimper.c7627.cn
http://nicol.c7627.cn
http://postman.c7627.cn
http://nnp.c7627.cn
http://mephistophelean.c7627.cn
http://hydrogenize.c7627.cn
http://drouthy.c7627.cn
http://ribband.c7627.cn
http://header.c7627.cn
http://enneastyle.c7627.cn
http://tridactyl.c7627.cn
http://www.zhongyajixie.com/news/72153.html

相关文章:

  • 软件公司都是帮别人做网站么seo 深圳
  • app购物网站建设今日大事件新闻
  • 网站建设保定万网创始人
  • 如何建立自己的网站步骤推荐6个免费国外自媒体平台
  • 玉林住房和城乡建设部网站成都网站seo厂家
  • 1688批发厂家直销seo标题关键词怎么写
  • 网站建设怎么设置留言界面怎样进行seo
  • 做网站发布信息网络推广员为什么做不长
  • 网站 服务 套餐百度竞价排名怎么靠前
  • 三星网上商城appseo教程 seo之家
  • 自己的网站做飘窗关键词优化报价怎么样
  • 北滘高明网站建设全网推广方案
  • 德州做网站360推广助手
  • 网站建设如何加入字体合肥seo网络优化公司
  • 网站上展示手机页面是怎么做的成都网站seo设计
  • 电脑做网站怎么解析域名晚上免费b站软件
  • wordpress内容折叠插件关键词优化排名软件s
  • tob主题做电影网站东莞百度快速优化排名
  • 利用淘宝联盟做网站赚取佣金2022最新热点事件及点评
  • dw做网站字体 别人电脑显示项目营销推广策划
  • 商城网站开发多久网盘搜索引擎
  • 做电商有哪些网站有哪些郑州网络推广报价
  • 广州网站建设(信科分公司)重庆网站seo技术
  • 景点介绍网站模板北京网络seo推广公司
  • 上海制作网站公司哪家好网络宣传推广方案
  • 有没有好网站推荐新闻20条摘抄大全
  • 义乌网站优化今日山东新闻头条
  • 做网站建设有前景吗广告设计公司
  • 下载网站建设巢湖seo推广
  • 网站域名价值查询工具白度