git命令

作者: 凉介Seven | 来源:发表于2018-09-29 19:56 被阅读0次

    之前用的命令换账号后不管用了很纠结,初次配置上传环境重新爬坑,怕以后再忘了,留个记录
    git init
    git add .
    git commit -m "pro"
    git remote add origin https://github.com/q771307617/zjhy.git
    git push -f https://github.com/q771307617/zjhy.git

    http://blog.csdn.net/kangvcar/article/details/72773904
    http://www.cnblogs.com/mengdd/p/3447464.html
    附带两个当时git到的一些方法。哪里报错查哪里,错的多了就会了

    如果你是第一次的话需要绑定一下你的用户名和邮箱
    git config user.name "moumoumou"
    git config user.email "moumoumou@163.com"

    常用git 命令

    1. 更新
    git fetch origin master
    git merge origin/master
    2.暂存
    git stash
    git stash list
    git stash pop
    3.推送
    git add .
    git commit -m "推送的内容"
    git push mycode master

    相关文章

      网友评论

          本文标题:git命令

          本文链接:https://www.haomeiwen.com/subject/iuiboftx.html