受欢迎的博客标签

wechat-微信小程序Asp .Net Core开发实战记录(2)-小程序利用git提交项目

Published

 

微信小程序开发工具客户端git提交项目托管到GitHub

微信开发者工具ide自带git功能,显示在有上角。点击版本管理进入即可。

1、码云上创建一个项目 xiaochengxu

2、本地创建一个文件夹,然后在控制台使用 cd 文件夹名字 (将文件拉到控制台)

3、使用 git init 命令 ,初始化一个git 本地仓库(项目),会在本地创建一个 .git 的文件夹

4、//添加远程仓库,使用 git remote add origin https://gitee.com/xiaochengxu

5、将码云上的仓库pull到本地文件夹,使用 git pull origin master 命令,

6、将要上传的文件,复制到刚刚创建的文件夹

7、(将文件保存到缓存区),使用 git add . 或者 git add + 文件名

8、(文件保存到本地仓库),使用 git commit -m '描述新添加的文件内容'  (就是注释)   

9、将本地仓库推送到远程仓库,使用 git push origin master   !!!如果出现: git push origin master Everything up-to-date  

原因:1、没有git add . 成功

2、没有git commit -m "提交的信息" 重新执行上面两个命令:

如果还是没有成功: 在github上创建文件的时候,在新文件名后加/符号就是文件夹,但是这种方式只支持英文名目录,中文名目录不支持。 出现下面信息。

提示提交成功: remote: Powered by Gitee.com To https://gitee.com/yyl3392/horse_small_program.git 8be2d87..445aa11 master -> master   以后每次上传,只需要这两个就可以 git add . 添加 git commit -m "提交的信息".

https://blog.csdn.net/wgxhxh/article/details/121505744

https://blog.csdn.net/znoone/article/details/108623368

home assistant on raspberrypi  git

which git
/usr/bin/git       <-- already installed
                   <-- not installed (will not return anything)
sudo apt-get update         <-- update your packages
sudo apt-get install git    <-- install git if needed

 

sudo apt-get install git
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"

cd /home/homeassistant/.homeassistant

output

root@raspberrypi:/home/homeassistant/.homeassistant# git init
重新初始化已存在的 Git 仓库于 /home/homeassistant/.homeassistant/.git/

 

How to set up Git to version control your Home Assistant configuration

https://diy-smarthome.com/how-to-set-up-git-to-version-control-your-home-assistant-configuration/

 

在本地使用git clone直接把远程仓库克隆下来

git clone [email protected]:smuyyh/BookReader.git

 

Git和GitHub使用教程

https://www.jianshu.com/p/296d22275cdd