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
  • 相关阅读:
    (判断是否为弱联通分量) poj 2762
    (最大生成树) poj 1979
    (暴力) bzoj 2208
    (BFS) bzoj 1102
    (并查集) bzoj 1161
    (数学) bzoj 1800
    (博弈) bzoj 2460
    (dinic) poj 3469
    (双端队列优化的SPFA) bzoj 2100
    (判断负环) bzoj 2019
  • 原文地址:https://www.cnblogs.com/inthecloud/p/12664916.html
Copyright © 2011-2022 走看看