zoukankan      html  css  js  c++  java
  • AS上傳代碼到GitLab

    打開Terminal或者cmd,進入到項目所在目錄

    git config --global user.name "你的用户名"
    git config --global user.email "你的邮箱"
    git init
    git remote add origin 你刚才建立的项目连接
    git add .
    git commit
    git config http.postBuffer 524288000 #(特别提醒: 此行是在本地设置缓存, 有些项目文件较大, 使用http无法上传,可设置此命令)
    git push -u origin master  #将代码推送到gitlab端

     Git全局设置

    git config --global user.name "用户名"
    git config --global user.email "邮箱地址"

    创建一个新的仓库

    git clone 你的Git地址
    cd flutter-work
    touch README.md
    git add README.md
    git commit -m "add README"
    git push -u origin master

    现有资料夹

    cd existing_folder
    git init
    git remote add origin 你的git地址
    git add .
    git commit -m "Initial commit"
    git push -u origin master

    现有的Git存储库

    cd existing_repo
    git remote add origin 你的git地址
    git push -u origin --all
    git push -u origin --tags
  • 相关阅读:
    匿名函数
    内置函数
    基础函数--3
    基础函数(2)
    基础函数(1)
    文件的相关操作
    知识点补充,set集合,深浅copy
    is 和 ==的区别
    Django-form组件中过滤当前用户信息
    Django的常用模块引入整理
  • 原文地址:https://www.cnblogs.com/inthecloud/p/12664916.html
Copyright © 2011-2022 走看看