github - How can can i give git root access after changing my repo keeping history? -
am new git understand main idea came across particular issue team , kind of confused try explain it.
we have project (live) , pushing repository (ex: bitbucket) directly server root access ( files permissions , access). manager decided switch repository github, push our local changes github live did following:
git remote add [newname] ssh://[username]@[website]/var/www/[folder]/repo/site.git then:
git push [newname] [oldname] i use
git push [branch] and automatically push server , giving github root access don't need rewrite permissions. keep git history if possible, there way beside deleting existing .git folder , creating new git init in server ?!
Comments
Post a Comment