Hi can you help me solve that problem? I am on a branch **(HEAD detached from refs/heads/master) where I have some new commits and I need add these changes into my master branch. an you tell me how to do that? Here is my output from terminal after entering git branch
and git status
**
denis@N56VJ:~/Workspace/ita-javaee-04$ git status
HEAD detached from refs/heads/master
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/webapp/package-lock.json
nothing added to commit but untracked files present (use "git add" to track)
denis@N56VJ:~/Workspace/ita-javaee-04$ git branch
* (HEAD detached from refs/heads/master)
master
denis@N56VJ:~/Workspace/ita-javaee-04$
git checkout -b <new-branch-name>
, and continue from there...git checkout -B master
in this case.git checkout -B master
is dangerous, and should not be recommended to a git-newbie: It may loose commits atmaster
!master
is out of OP interest. Could have been wrong.