• 持续集成


    配置全局的用户名:git config --global user.name "zhangyang0514"
    配置全局的邮箱 :git config --global use.email "abcfdfdd@163.com"
    查看当前配置 :git config --list

    将远程仓库克隆到本地:git clone https://gitee.com/abc/aaa.git
    将仓库的代码拉取到本地:git pull origin master
    git add . # 将当前目录所有文件添加到git暂存区
    git commit -m '注释' # 提交并备注提交信息
    git push origin master # 将本地提交,推送到远程仓库master分支
    git push origin test # 将本地提交,推送到远程仓库test分支

    git add a.py  # 仅提交某个文件

    git log 查看日志
    git log -n 查看最近n条日志

    查看分支:git branch
    创建分支:git branch <name>
    切换分支:git checkout <name>
    创建+切换分支:git checkout -b <name>
    合并某分支到当前分支:git merge <name>(合并后并不会推送上码云,还需要手动git push origin master)
    删除分支:git branch -d <name>
    删除码云上的分支 git push --delete origin <name>

  • 相关阅读:
    PAT 甲级 1115 Counting Nodes in a BST (30 分)
    PAT 甲级 1114 Family Property (25 分)
    PAT 甲级 1114 Family Property (25 分)
    Python Ethical Hacking
    Python Ethical Hacking
    Python Ethical Hacking
    Python Ethical Hacking
    Python Ethical Hacking
    Python Ethical Hacking
    Python Ethical Hacking
  • 原文地址:https://www.cnblogs.com/xiaochongc/p/12896395.html
Copyright © 2020-2023  润新知