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 7837343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:35:54+00:00 2026-06-02T14:35:54+00:00

Can anyone give me some guidance on how to use Git, so that I

  • 0

Can anyone give me some guidance on how to use Git, so that I can further read the manuals. Now the manuals is too complicated for me.

I am using an opensource code, I am not the core developer, but I am also developing some modules in my field. But the core team wont accept my development. I hope I can keep an backup of all my modifications and new added modules in a repository or something like that, and I can see them on github. But in the meantime, I want to keep on updating all the unchanged the files from the core developers, and if there is a conflict or the file, I want to simply keep mine.

So, should I create a new branch, or create a fork, or create a new repository?

For example, after I git clone blahblah and some days later, I git pull to uodate, and then I modified a file-A, and added a new dir B and a file C under B. What should I do now? Because whenever I git pull again, there is a warning error saying some files are in conflict.


update of my question:

Thanks, this is very helpful.

Please correct me if I am wrong, what I need to do now is:

  1. Go to the github, and make a fork of the original project repo. Does this mean I am creating a new repo under my account?

  2. Then, there will be a git link address with this new repo, is that right?

  3. And then I just on my computer use, git clone this_new_git_repo_link to copy the whole project.

  4. Add or modify on my own computer, and learn to commit all the changes,

  5. then these changes will be seen from online github through my new repo.

  6. When the upstream, there is a change, on my own computer, I create a new branch called the “upstream”?? The original one that was copied from my own fork repo will be by default called “master”,

  7. then switch to branch upstream by using command checkout, and then execute ‘git pull’, and this will create two versions on my own computer now, one is the updated version, and the other is my modified version.

  8. Here the question is how to merge this updated branch “upstream” into my own branch “master”, what is the command to just merge those files I have never changed. And so that after stwitch back to my own branch of “master”, I can do a commit, so my online repo will be both with upstream update and my own modifications.

  • 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-02T14:36:05+00:00Added an answer on June 2, 2026 at 2:36 pm

    If you and the other developers are using github, then I would fork the main repo and set it as the upstream. You can then work in your own master branch and push and pull your own work as much as you like. If the upstream branch changes and you want to pull in the changes, you might consider making a new branch to easily mark where you are at (you can always delete this branch later), then switch back to the master branch and then pull in upstream changes to your master branch. You might get merge conflicts, but git will mark these in the files in your master branch. If you don’t like the core developers changes, you can delete all, or some of the conflicting code they added and then keep woking as normal.

    You can keep repeating this cycle indefinitely so that you stay relatively up to date with the core.

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

Sidebar

Related Questions

can anyone give me some steps to create DLL without using class which means
can anyone give me some tips or hook me up with some good links
Can anyone give me some idea about uploading data from excel to access database
I can't understand what the below ruby code does. Can anyone give me some
Can anyone give me any pointers. I have a text file that contains dates
Can anyone give me the 411 on shopping carts? I have a client that
Can anyone give some sample program in Lex and Yacc. Thanks.
Can anyone give some clues as to why when I try to render the
http://lv.php.net/manual/en/function.exif-imagetype.php Can anyone give some more information about the rest extension types. About these:
Can anyone give me some idea abt how to page a HTML page? The

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.