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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -