-
-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Describe the bug
I'm committing code to a new branch in a remote repo. The local repo has a new branch and the remote one does not yet have this branch.
Workflow used
remote> git branch newbranch
remote> git add .
remote> git commit -am {commit message}
Expected behavior
The line > Switching/creating branch...
would create the branch.
Logs
Either provide a link to the action run or (if your repo is private) paste here the logs from the step that uses it. If you paste the logs, please use this template, and remember to paste the logs from all the different sections.
Logs
Internal logs > Staging files... > Adding files... > No files to remove. > Checking for uncommitted changes in the git working tree... > Found 8 changed files. { raw: '', remote: null, branches: [], tags: [] } > Switching/creating branch... Error: Error: error: pathspec 'aff' did not match any file(s) known to git
Pulling from remote...
{ raw: '', remote: null, branches: [], tags: [] }
Error: Error: There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> aff
Outputs
Error: Error: There is no tracking information for the current branch.