• GIT 版本管理-github&码云


    GIT 是什么

    git是一个用于帮助用户实现版本控制的软件。

    把本地代码push到远程服务器

    git add.
    git commit
    push code to remove machine.
    git push

    远程服务器pull
    git pull

    git命令

    git init

    git status 查看当前文件夹的状态。
    git add 文件名 对指定文件进行版本控制
    git add . 对指定文件夹下的所有文件及子目录进行版本控制
    git commit -m '详细的描述信息' 创建提交记录(版本)

    git log
    git reflog

    git reset --hard 提交记录(版本号)

    https://lupython.gitee.io/2018/05/07/git%E7%9A%84%E4%BB%8B%E7%BB%8D%E5%92%8C%E4%BD%BF%E7%94%A8/

    https://www.cnblogs.com/ludashi/category/1141984.html

     

    git协同开发

    a. 怎么通过git做得协同开发?

    b. 是否做代码review?

    c. 开发过程中出现bug如何做?

    d. git rebase作用?

    e. 给别人开源代码贡献力量。

    f. 使用的github、gitlab ?

    PS:隐藏明感信息

    五个阶段

     

     码云


    码云官方https://gitee.com/help/articles/4114#article-header0
    git config --global user.name "dujun31"
    git config --global user.email "dujun31@vip.qq.com"

    https://gitee.com/dujun31/dujun

    ssh-keygen -t rsa -C "dujun31@vip.qq.com"
    一路回车
    公钥地址:C:UsersAdministrator.ssh

     

    每天早上先pull一下,只改自己的代码,如果有影响,让别人改好后再弄

    git init 初始化
    git add . 添加文件 (一般只提交自己的文件)

    添加文件夹 git add img/

    git status 查看状态
    git commit -m "1.0.2222" 添加到本地查看 ,引号一定要""

    git rm a.py  删除文件

    git remote add dj https://gitee.com/dujun31/dj.git
    dj是在线仓库的别名
    git remote add dujun https://gitee.com/dujun31/dujun.git
    dujun是在线仓库的别名


    git remote rename origin dj
    git push dj master

     push前先pull (git pull --rebase dujun master)

     代码冲突错误

     

    需要进去手动修改

     TortoiseGit

    https://www.cnblogs.com/xuwenjin/p/8573603.html

  • 相关阅读:
    codeforces 1065F Up and Down the Tree
    初探莫比乌斯反演
    IOI2008 island
    miller——rabin判断素数
    NOIP2018游记
    NP是什么意思?
    word2016如何英汉互译
    2.1数字图像化
    Windows程序内部运行机制
    2.2图像灰度直方图
  • 原文地址:https://www.cnblogs.com/du-jun/p/10408556.html
Copyright © 2020-2023  润新知