Here is what I did:
- I ran
git checkout -b branch_name
. - I made some commits on
branch_name
. - I checked out the
master
branch and did a fast-foward merge.
When I run git log branch_name --oneline
, I get the following message:
fatal: ambiguous argument 'branch_name': both revision and filename
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
What could be the problem?