The deletion/renaming of the branch mainOld depending on the creation method of the chirp_cli branch.
Advice:
(With the terminal)
Ensure you are on the main branch and fully up to date. You can use git status and git branch -a to see which branch you are on, which branches are available and how far behind or ahead you are of the remote branch you are track.
To make the new branch, use git switch -c chirp_cli remotes/origin/main if it complains about the remote branch, try removing the remotes part such that it is git switch -c chirp_cli origin/main (also note if you have renamed your remote repository, then exchange origin for that name).
(It might actually be uneccesary to have include remotes/origin/main as the branch should be created from where the HEAD is pointing, but rather safe than sorry...)
The branch is now tracking main.
Push the branch to github with git push origin chirp_cli
Enter your GitHub username
Enter your GitHub "Personal Access Token" in the password section. And then it should work.
Acceptance criteria:
chirp_cli
mainOld
depending on the creation method of thechirp_cli
branch.Advice: (With the terminal)
git status
andgit branch -a
to see which branch you are on, which branches are available and how far behind or ahead you are of the remote branch you are track.git switch -c chirp_cli remotes/origin/main
if it complains about the remote branch, try removing theremotes
part such that it isgit switch -c chirp_cli origin/main
(also note if you have renamed your remote repository, then exchangeorigin
for that name).remotes/origin/main
as the branch should be created from where the HEAD is pointing, but rather safe than sorry...)git push origin chirp_cli