zoukankan      html  css  js  c++  java
  • git将本地项目上传到远程仓库

    1、cd mygit  打开项目文件夹

    2、git init   初始化git

    3、git remote add origin xxx(远程仓库地址)  添加远程库   git remote -v 查看远程库

    4、git add .  添加当前文件夹下的文件

    5、git commit -m "the first version"  提交修改

    6、git push -u origin master  上传到远程仓库  后面可以直接使用git push origin master

    删除本地指定的远程地址:git remote remove origin

    拉取远程仓库:git pull origin master

    git push错误failed to push some refs to的解决

    参见https://blog.csdn.net/mbuger/article/details/70197532

    git pull --rebase origin master

    git push -u origin master

  • 相关阅读:
    Sherlock and Squares
    [leetcode] Super Ugly Number
    [leetcode] Ugly Number II
    [leetcode] Ugly Number
    [leetcode] Burst Balloons
    菜根谭#268
    菜根谭#267
    菜根谭#266
    菜根谭#265
    菜根谭#264
  • 原文地址:https://www.cnblogs.com/lucifer1997/p/9838383.html
Copyright © 2011-2022 走看看