I was asked to "rebase and squash (my) commit in one commit?" for pull request https://github.com/samtools/htsjdk/pull/34#issuecomment-45226559
This is the first time I do this, and I think I am doing the wrong things. I am currently lost.
Last time I tried something:
$ git branch
* fastq
$ git status
$ git merge-base fastq master
67901f963470a1cd2f8477f736b6b2192343485c
$ git rebase --interactive 67901f963470a1cd2f8477f736b6b2192343485c
(... tried things, ... pulled, pushed, etc...)
$ git rebase --continue
error: Ref refs/heads/fastq is at a3aa885e4943279a7ece9e2eae85b1a80c41af32 but expected c5dc7c69108d1d72cf9eeb0144332075b06fea71
fatal: Cannot lock the ref 'refs/heads/fastq'.
What needs to be done to answer the need for a reviewer?
update: when i try to click
$ git push origin fastq
To https://github.com/lindenb/htsjdk.git
! [rejected] fastq -> fastq (non-fast-forward)
error: failed to push some refs to 'https://github.com/lindenb/htsjdk.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
source
share