简体   繁体   English

如何将文件从主分支移动到 Git 中的主分支

[英]How to move files from Master to Main branch in Git

This is the link to my Github Repository.这是我的 Github 存储库的链接。

https://github.com/SparshBohra/Skin-Lesion-Detector https://github.com/SparshBohra/Skin-Lesion-Detector

How do I move my 2 folders from the master branch to the main branch?如何将我的 2 个文件夹从主分支移动到主分支?

Also, how do I get the coding languages used, to show up as other repositories do?另外,我如何让使用的编码语言像其他存储库一样显示出来?

  1. You can merge those branches.您可以合并这些分支。 https://git-scm.com/docs/git-merge https://git-scm.com/docs/git-merge

  2. AFAIK github is doing it automatically. AFAIK github 正在自动执行此操作。

In git, it's very easy and straight forward to use branches.在 git 中,使用分支非常简单直接。
Whenever you are done with your development (assuming on a side branch) you simply need to merge it back to the desired branch.每当您完成开发(假设在侧分支上)时,您只需将其merge回所需的分支。

在此处输入图像描述


Pull Request拉取请求

A better and much more recommended way is to open a pull request更好且更推荐的方法是打开拉取请求在此处输入图像描述


Using a pull you can do a code review as well with the ability to update/modify your branch and track all the changes使用拉取,您还可以进行代码审查,并能够更新/修改您的分支并跟踪所有更改在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM