Basically all you need is to rebase to desired commit and use git ammend command.
- Rebase to target commit:
git rebase -i [COMMIT-HASH]
| FROM php:7.1-cli | |
| ENV COMPOSER_VERSION=1.6.3 | |
| # Update and install required packages | |
| RUN apt-get update && apt-get install -y zlib1g-dev \ | |
| && docker-php-ext-install zip | |
| # Install composer | |
| RUN curl https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar --output composer.phar \ |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| list := make(chan int) |