linux - how to sync a "shadow" git repository with a main repository "secretly" -


i have client work via git repository. not want him know partly using developer. have therefore created "shadow" repository, developer using.

how sync "shadow" repository main repository main repository not know happening?

  • i cannot merge git command, since reveal have done.
  • i copy , paste files, visible in git have deleted files , replaced new files same name. not good.
  • my client using bitbucket. give other developer bitbucket login, want avoid that.
  • what work, can open file in main repository, delete content , paste in updated code. commit , if had done work directly in main repository. time-consuming (and time not have of).

is there different way "secretly" copy content of files shadow repository main repository? there linux/osx-command use replaces content of file without deleting , recreating file (which use recursively)? there git-command make possible without leaving trail of evidence of have done?

you can have same set of local files revisioned different git repositories, using command line. use git_dir environment variable. git repositories independent, , can track files same directory.

rem set git use sub-developer's git repository set git_dir=/path/to/sub/repository.com  rem verify repository on git rev-parse --git-dir  rem pull sub-developer's latest git pull  rem merge, commit, change, push, change branches, whatever rem ... when code way want  rem switch client repository set git_dir=/path/to/client/repository.com  rem bring main repository date git commit -m"changes brought on sub-developer"  rem push updated code client repository git push 

this useful other development practices, versioning lab data, local developmental utilities, work logs, , other 'misc' files seem accumulate source code, shouldn't archived it.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -