![]() ![]() workstation2), you will get the files you just checked in. ![]() Now, if you do a git clone git://server/repo.git from another machine (e.g. To bring the changes back to the central repo, you can simply type git push since you set up the tracking of the branch in step 5. ![]() Your branch is ahead of origin/whatever by 1 commit When you type git status now, it should give you a message like Now, do some more local changes and commit them to the local repo as in step 4. Now, the changes (adding files) were stored in the local repository.įinally, push back the files (assuming you work on branch master) to the server (known as origin): Ĭommit the added files to the local repository: Initialize the bare repo on your server like you wrote:Ĭheckout this directory to your workstation1:ĭrop some files into this freshly cloned repo and add them to the track. Assume you have a server where the bare repo is stored and some workstations where the actual work is done. You have to do some steps to get files into your repo. However, since I can't seem to get the files in the first place, I can't really proceed! The major intention is to allow a lot of developers to simultaneously work on the files and push their changes to the main /live/website directory, once they are done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |