zoukankan      html  css  js  c++  java
  • git上传本地文件到gitlab

    The repository for this project is empty

    If you already have files you can push them using command line instructions below.

    Otherwise you can start with adding a README, a LICENSE, or a .gitignore to this project.

    You will need to be owner or have the master permission level for the initial push, as the master branch is automatically protected.

    You can activate Auto DevOps (Beta) for this project.

    It will automatically build, test, and deploy your application based on a predefined CI/CD configuration.

     

    Command line instructions

    Git global setup
    git config --global user.name "qzd"
    git config --global user.email "qzd123@163.com"
    
    Create a new repository
    git clone ssh://git@192.168.1.245:10022/qzd/web.git
    cd web
    touch README.md
    git add README.md
    git commit -m "add README"
    git push -u origin master
    
    Existing folder
    cd existing_folder
    git init
    git remote add origin ssh://git@192.168.1.245:10022/qzd/web.git
    git add .
    git commit -m "Initial commit"
    git push -u origin master
    
    Existing Git repository
    cd existing_repo
    git remote add origin ssh://git@192.168.1.245:10022/qzd/web.git
    git push -u origin --all
    git push -u origin --tags
  • 相关阅读:
    2
    1
    nginx隐藏版本号
    全面对比主流 .NET 报表控件 (转)
    前端的发展和未来趋势
    NPM初学者指南 (转)
    一文解读MySQL事务
    如何高效的学习技术
    重新统一的 .NET平台-.NET 5
    为啥要有微服务?啥是微服务?
  • 原文地址:https://www.cnblogs.com/BigStupid/p/8059247.html
Copyright © 2011-2022 走看看