yangjingkang

注意:操作要保证在对应文件夹中打开Git bash here (例如:clone项目后要cd到文件中,否则报“git提示没有git存储库”)

1.创建一个git裸服务器 (git init --bare)

2.从裸服务器将版本库克隆至本地(git clone http://www.gitlab.com/yangjingkang/test.git)

3.本地常规操作(操作前先 git pull 拉取最新版本,防止出错

  1)添加git add

  

  

  2)提交git commit -m 提交说明信息

  

  3)查看状态git status

  

  4)推送版本至服务器 (git remote +  git push origin master)

    a.查看服务器位置

    git remote

    

    b.直接推送

    git push origin master 

    

    遇到情况:执行合并后,弹出“编写合并信息”的操作命令。可直接:wq退出

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-04-30
  • 2021-11-23
  • 2021-10-20
  • 2021-12-17
  • 2021-06-15
  • 2022-01-20
  • 2021-09-14
猜你喜欢
  • 2021-11-02
  • 2021-09-14
  • 2021-11-02
  • 2021-05-18
  • 2022-01-05
  • 2021-10-04
  • 2021-11-02
相关资源
相似解决方案