Git push, where is the hidden source code?

I tried setting up the git deployment server and server on the same machine for my ror application. I transferred the project from the local machine to the git server / deployment server using the following commands:

git remote add origin path_to_git_server
git push origin master

Then on the git server, I found the "master" file in ~/git/log.git/ref/heads, but nowhere can I find all the source codes. I need to specify the source folders so that they work on the apache web server. What have I done wrong here? Thank.

+3
source share
3 answers

, git init --bare - , git, . , .

A ( )

B ( )

C ( )

( , "remote" , )

Machine B (Repo), , , git push ( ..), ( .git Machine a )

git ( ), , git - ), 1 B, " " git , , git - "" .

Machine C B - ".git" , / , . git pull

. , - :

~/projects/git_project (Your devel area)
/home/repo/git_project.git ("Remote" repo)
/opt/rails/git_project ("Production" machine)

,

~/projects/git_project

to

/opt/rails/git_project

+6

. project_name.git.

, . .

-, -, , Gitweb Gitosis.

, - Git ? , SO, : -)


capistrano ( ) Git, :

  • git clone, (, - Git) -

  • capistrano

  • git pull , .

+3

. , .

, git init --bare git receive.denyCurrentBranch ignore, push. , , git .

See http://toroid.org/ams/git-website-howto for more details .

0
source

Source: https://habr.com/ru/post/1752178/


All Articles