steps to sync branch to fork master?

$ git remote -v
> origin	https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin	https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
> upstream  https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
> upstream  https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)

4.67
3
Effortful 120 points

                                    $ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

4.67 (3 Votes)
0
4
1

                                    $ git merge upstream/master
> Updating a422352..5fdff0f

4 (1 Votes)
0
4.13
8
G B 105 points

                                    $ git remote -v
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (push) 

4.13 (8 Votes)
0
0
6

                                    $ git fetch upstream
> remote: Enumerating objects: 82, done.
> remote: Counting objects: 100% (82/82), done.
> remote: Compressing objects: 100% (44/44), done.
> remote: Total 91 (delta 53), reused 30 (delta 30), pack-reused 9
> Unpacking objects: 100% (91/91), done.
> From https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY
>  * [new branch]  	master -> upstream/master

0
0
3.7
10
Aaaantoine 105 points

                                    $ git checkout master
> Switched to branch 'master' 

3.7 (10 Votes)
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source