Skip to content

Git challenge about "git rebase" command to bring commits from more than 1 branch onto master. The original repository is linked below.

Notifications You must be signed in to change notification settings

PabloFLPs/interlincx-git-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Challenge

There are two branches, add-echo and add-reverse. The goal of this challenge is to use git rebase to bring both commits onto master. When finished there should be no merge commits or branching. For example, git log on the master branch should look similar to this:

/challenge-git master
⚡ git log
61a2c67 feat: add reverse route (David Guttman, 7 minutes ago)
2c2c5d6 feat: add echo route (David Guttman, 10 minutes ago)
dcc4c0b docs: add more instructions (David Guttman, 11 minutes ago)
...

Instructions

How to attempt this challenge:

  1. Create a new repo in your account and note the git url
  2. Clone this repo
  3. Solve the challenge
  4. Set your new repo as the origin: git remote set-url origin ${your repo url}
  5. Push your solution to your repo You must follow these steps for your solution to be accepted -- forks or other methods will not be considered.

Solution

My solution was:

git clone original-repo-url

cd challenge-git

git checkout add-echo

git checkout add-reverse

git rebase --onto master add-echo add-reverse

git log

git remote set-url origin my-repo-url

git push origin master

About

Git challenge about "git rebase" command to bring commits from more than 1 branch onto master. The original repository is linked below.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published