使用git bash提交代码至远程库

git status
git add .
git commit -m "修改内容"
git push origin master:refs/for/master
----记得打钩


 

第一次提交代码到git 真的全程踩坑  总是报各种错   解决这个问题又有新问题

纪念一下   因为通过我不小心的努力  最后我还是成功了.......

 好笑的是我连续提交了三次。。。

$ git log
commit 8f0fce2955e013e02bc2791333b889e5968c1bfd (HEAD -> master, origin/master,
origin/HEAD, test)
Merge: eda1804d 08e067fa
Author: ----
Date:   Mon Aug 26 17:11:06 2019 +0800
commit 8f0fce2955e013e02bc2791333b889e5968c1bfd (HEAD -> master, origin/master,
commit 8f0fce2955e013e02bc2791333b889e5968c1bfd (HEAD -> master, origin/master,
commit 8f0fce2955e013e02bc2791333b889e5968c1bfd (HEAD -> master, origin/master,
origin/HEAD, test)
Merge: eda1804d 08e067fa
Author: ----
Date:   Mon Aug 26 17:11:06 2019 +0800

    Merge "testcase"

 

你可能感兴趣的:(gerrit)