zoukankan      html  css  js  c++  java
  • gitlab的使用方法

    Git global setup: git全局建立
    git config --global user.name "Your Name"
    git config --global user.email "your.name@gmail.come"

    Create Repository: 建立仓库
    mkdir your_file
    cd your_file
    git init
    touch README
    git add README
    git commit -m "first commit"
    git remote add origin git@gitlab.com:yourname/your_file.git
    git push -u origin master

    Existing Git Repo? 已经存在git仓库
    cd existing_git_repo
    git remote add origin git@gitlab.com:yourname/your_file.git
    git push -u origin master


    Add existing repo to gitlab:

    git init
    touch README git add README git commit -m "first commit" git remote add origin git@gitlab.com:yourname/your_file.git git push -u origin master
     

    If error "fatal: remote origin already exists" occurs:

    Seems like remote origin is already there somehow and you want to change its uri to another value. You can't add origin since its already there but you can update it. Instead of git remote add command, you can run:

    git remote set-url origin git@gitlab.com:yourname/your_file.git
    
  • 相关阅读:
    实验10 指针2。
    作业5 指针应用1。
    实验9 指针1。
    作业4 函数应用。
    实验8 数组2。
    实验7 综合练习。
    实验6 数组1。
    实验5 函数。
    作业3 应用分支与循环结构解决问题。
    作业2 分支、循环结构。
  • 原文地址:https://www.cnblogs.com/grandyang/p/4001278.html
Copyright © 2011-2022 走看看