Git简单使用

1.git init
2.更改默认的远程仓库
git remote add origin https://gitee.com/xxxxx/xxxxxx.git
3.查看当前的远程仓库
git remote -v
4.git add .
5.git status
6.git commit -m "练习的demo"
7.git push -u origin "master"

查看仓库分支
git branch
推送到分支
git push -u origin "demoGame"

8.强制推送
git push -f origin "master"

修改代码之后提交 循环467

使用Git进行代码提交时,在VSCode中过滤掉特定的文件夹

  1. 创建 .gitignore 文件
 /.creator/
 /.idea/
 /build/

3.如果已经上传到仓库里面
node_modules文件名

git rm -r --cached node_modules

4.添加.gitignore文件并提交更改
git add .gitignore
git commit -m "更新 .gitignore 文件配置"
5.git push -u origin "master"

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值