git pull one version but push another -


in git bash on local branch wrote:

git pull production master 

i checked files , seem same ones in remote server.. everything's ok.

afterwards wrote:

git add . git commit -m 'ggggg' 

and here weird part: response was: "nothing commit working directory clean".

this strange because before pulled remote branch many files different

you can guess comes next- check if indeed local branch in sync remote 1 (and seem looking @ files) wrote:

git push production master 

and ruined remote branch pushing old version (:

so.. missing here?

the command git pull changes working directory contents of remote. when completes working directory consistent git index/repository. thus, there nothing add nor commit. essentially, git pull add , commit automatically you.

the problem may seeing result of being on branch other 'master'. pulled 'master' branch 'foo'; merged smoothly; pushed 'foo' 'master' , changed remote. perhaps.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -