git - files disappearing after pushing to local branch and remote -



git - files disappearing after pushing to local branch and remote -

in git repo, have 3 branches:

master dev gh-pages

my primary thought commit info dev, gh-pages (and force remote storing or backing up). after done.. merge master.

what's interesting is.. when commit info dev, gh-pages , force them, files disappearing! (why happening?)

now, after happened, want clone repo, work on again.. there no files on master, cloning nothing.

i guess used git merge master while in either dev or gh-pages, merges from master, not to master.

you need first switch master, merge branch want merge from:

git checkout master git merge <branch>

by way, gh-pages should separate code. it's documentation of github repository, , files have nil code. don't merge content master.

git github

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -