I am working on library_backend
project and it is git repository which have 2 branches :
- master
- multilanguage.
i have made some changes in multilanguage
branch and pushed it to its remote branch and after it i want to check some functions on master
branch.
so i have switched to master
branch and after checking i have switched back to multilanguage
branch but now it has modified file which is books_model.php
, how can it has modified file if i have pushed it some seconds ago?
You can see what i have done after pushing to remote branch as below:
ABC@ABC-PC MINGW64 /c/xampp/htdocs/library_backend (multilanguage)
$ git checkout master
Switched to branch 'master'
M application/models/api_model/books_model.php
Your branch and 'origin/master' have diverged,
and have 4 and 10 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
ABC@ABC-PC MINGW64 /c/xampp/htdocs/library_backend (master)
$ git checkout multilanguage
Switched to branch 'multilanguage'
ABC@ABC-PC MINGW64 /c/xampp/htdocs/library_backend (multilanguage)
$ git status
On branch multilanguage
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: application/models/api_model/books_model.php
no changes added to commit (use "git add" and/or "git commit -a")