zoukankan      html  css  js  c++  java
  • gitlab使用

    创建项目到gitlab

    https://blog.csdn.net/qq_37674858/article/details/80829340

    提交本地项目到gitlab

    更新gitlab上的项目

    1.打开命令行的窗口,定位到项目所在的路径。
    
    2.输入:git status,敲回车查看代码是否有更新,有更新的话会出现文件改变的文件名。(红色的)
    
    3.输入:git add .    (注意“.”)
    
    4.git commit -m "" :只会提交添加到缓存区的文件到本地仓库;
    
              或者git commit -a -m "" :能提交修改过但没有添加到缓存区的文件.
    
    5.输入:git push, 回车,完成。

    错误处理

    fatal: remote origin already exists.
    
    
    解决办法:
        1、先输入$ git remote rm origin
    
        2、再输入$ git remote add origin git@github.com:djqiang/gitdemo.git 就不会报错了!
    
        3、如果输入$ git remote rm origin 还是报错的话,error: Could not remove config section 'remote.origin'. 
        我们需要修改gitconfig文件的内容    
    4、找到你的github的安装路径,我的是C:UsersASUSAppDataLocalGitHubPortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8etc     5、找到一个名为gitconfig的文件,打开它把里面的[remote "origin"]那一行删掉就好了!

     gitlab基本操作学习

    https://blog.csdn.net/justlpf/article/details/80681853

    打tag

    用于版本发布时使用

    https://www.cnblogs.com/x3d/p/git-tag.html

    对gitlib上的项目进行添加新功能

    新建文件夹 git_test
    右键新文件夹,git bash here
    执行 git clone https://github.com/dujufei/rest_api.git
    然后在pycharm中打开项目
    添加新功能
    添加后git add .
    git commit -m '增加了xx功能'
    git push origin master
    完毕
    
    要是想要删掉gitlab自己上传的文件
    git pull origin master
    在pycharm中删除
    git add .
    git commit -m '删除了xx'
    git push origin master
  • 相关阅读:
    Vector用法。
    error LNK2001的解决方法
    指针(详解)
    xxx cannot be resolved to a type
    springmvc写了方法无法访问
    java lombok包在maven已经配置,但是注解没用
    系统提供的相关intent
    Activity小结
    BrocastReceiver入门
    AppWidget入门
  • 原文地址:https://www.cnblogs.com/djfboai/p/10700232.html
Copyright © 2011-2022 走看看