Skip to content

Commit

Permalink
spelling corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
mfktechm committed Aug 8, 2018
1 parent a39ac56 commit 322bb2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
What if you commit a change, and then realize that you committed to a different branch?
How can you change that? This is what this tutorial covers.

## Moving the lastest commits to an existing branch
## Moving the latest commits to an existing branch
To do this, type:

```git reset HEAD~ --soft``` - Undoes the last commit, but leave the changes available.
Expand All @@ -16,7 +16,7 @@ To do this, type:
Now your changes are on the correct branch


### Moving the lastest commits to a new Branch
### Moving the latest commits to a new Branch
To do this, type:
```git branch newbranch``` - Creates a new Branch. Saving all the Commits.
```git reset --hard HEAD~#``` - Move master back by # commits. Remember, these commits will be gone from master
Expand Down

0 comments on commit 322bb2f

Please sign in to comment.