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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:17:42+00:00 2026-06-05T23:17:42+00:00

I have forked a private repository (an iPhone project) as follows: cd nameofdirectory git

  • 0

I have forked a private repository (an iPhone project) as follows:

cd nameofdirectory
git init
git clone forkedURL

Now I want to push the changes done by me to my forked repository so that the main admin can review my written code and merge it with the main repository.

How can I push the changes done by me to my forked repository using terminal on MacOS?

  • 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-05T23:17:44+00:00Added an answer on June 5, 2026 at 11:17 pm

    You can’t push into other people’s repositories. This is because push permanently gets code into their repository, which is not cool.

    What you should do, is to ask them to pull from your repository. This is done in GitHub by going to the other repository and sending a “pull request”.

    There is a very informative article on the GitHub’s help itself: https://help.github.com/articles/using-pull-requests


    To interact with your own repository, you have the following commands. I suggest you start reading on Git a bit more for these instructions (lots of materials online).

    To add new files to the repository or add changed files to staged area:

    $ git add <files>
    

    To commit them:

    $ git commit
    

    To commit unstaged but changed files:

    $ git commit -a
    

    To push to a repository (say origin):

    $ git push origin
    

    To push only one of your branches (say master):

    $ git push origin master
    

    To fetch the contents of another repository (say origin):

    $ git fetch origin
    

    To fetch only one of the branches (say master):

    $ git fetch origin master
    

    To merge a branch with the current branch (say other_branch):

    $ git merge other_branch
    

    Note that origin/master is the name of the branch you fetched in the previous step from origin. Therefore, updating your master branch from origin is done by:

    $ git fetch origin master
    $ git merge origin/master
    

    You can read about all of these commands in their manual pages (either on your linux or online), or follow the GitHub helps:

    • https://help.github.com/articles/create-a-repo for commit and push
    • https://help.github.com/articles/fork-a-repo for fetch and merge
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a private repository in github that has 5 collaborators.Now when the collaborators
I am new to git. I have forked another repository awhile back. I wanted
(Using Vista)I'm trying to clone an app from my GitHub Repository and push it
I have setup git server via ssh (one git account and many different public/private
Many open-source projects (e.g. django ) have GIT mirrors which are, in turn, forked
This question is about etiquette and open source projects. I have forked an application
I have a large buffer: char *buf = malloc(1000000000); // 1GB If I forked
I have a well formed XHTML page. I want to find the destination URL
I have created login page forced login in several pages. Now i need to
The title basically says it all. I have a hexadecimal string representing a private

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.