Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8688091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:16:23+00:00 2026-06-12T23:16:23+00:00

I am pretty new to Git. I have created a repository and added some

  • 0

I am pretty new to Git.
I have created a repository and added some files to the master branch. After that, each time wanted to work on a particular subproject, i have been doing “create new branch” with a name for example “csv_reader_branch”, “datetime_object”.

Now i have many branch and would like to push those branches to the master branch. Normally the projects are non overlapping but i would like to be able to compare before merging.

What is the best practice?

PS: also I see “fork” mentionned on many similar question but i am running git locally and cant find any “fork” in the github menus. Am i missing something?

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:16:24+00:00Added an answer on June 12, 2026 at 11:16 pm

    with git diff branchname files you can compare your current branch with other branches of your repository.

    To apply the changes of your branch to your master, you have to checkout to your master branch and use git merge branchname.
    Another possibility is to “cherry pick” a specific commit, but be warned, it doesn’t apply only the cherry-picked commit but all preceding commits since your branch split from master.

    A third possibility, if you want to only apply one commit and only, is to use git format-patch in your branch and apply the generated file(s) to your destination branch with git apply.

    EDIT: I forgot, there’s a 4th possibility with using git rebase instead of git merge but honestly, I would avoid to use it before being really good in using git.

    In any case, the difficulty is in resolving merge conflicts that occure when the same part of your files have been edited in the 2 branches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to Git. Right now I only have a master branch for
I've been making some vast changes on the master branch of my Git repository.
We've been using Git internally for quite some time now and have a pretty
I've made a pretty stupid mistake with a git repository and lost some files
I have the following repository layout: master branch (production) integration working What I want
I am pretty new to git. I have been primarily checking stuff into a
I am pretty new to Git. I am currently using EGIT. I have checked
I have a project that has some files that are fragile in a sense
I have a remote git repository where I have a tag (tag-1) that is
Pretty new to git and have a bit of an issue i'm not sure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.