Editing
Mediabistro Git Configuration
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Cloning an existing repo == How to start working on an existing repo for the first time. * `ssh` to `wmbdev1.iworld.com` * Navigate to the appropriate directory and create a sandbox.<br />Using '''insidefacebook''' as an example: <syntaxhighlight lang="bash"> $ cd /www/insidefacebook/git/ </syntaxhighlight> <strike>$ mkdir dbarchowsky</strike> <strike>$ cd dbarchowsky</strike> * Clone the repo. :* Find the project on http://git.iworld.com :* Make a note of its clone property. <syntaxhighlight lang="bash"> $ # the argument to "git clone" comes from the project proeperties found on git.iworld.com $ git clone git@git.iworld.com:insidefacebook.git </syntaxhighlight> :* In the case of `insidefacebook` this creates a root directory "insidefacebook" with another "insidefacebook" directory inside of that. It was necessary to install the root "insidefacebook" directory in `/www/insidefacebook/git/` and then rename the root "insidefacebook" directory to "dbarchowsky" to create the sandbox. :* Copy a `wp-config.php` file from an existing sandbox. :* No edits are necessary to the new copy of `wp-config.php`. Optionally edit it to make `WP_DEBUG true`. * Create a branch for the new task. <syntaxhighlight lang="bash"> $ cd insidefacebook $ git branch $ # response should be "* master" $ git co -b tm[TASK_ID] $ git branch $ # response should be " master" followed by "* tm[TASK_ID]" </syntaxhighlight> * Tar up the repo. <syntaxhighlight lang="bash"> $ tar -czvf insidefacebook.tar.gz insidefacebook </syntaxhighlight> * FTP to the server. * Download the tar file. * Uncompress the tar file in the local working directory. * Create a new PHP project in NetBeans. ** Set the '''run configuration''' for the project such that the files are uploaded to the sandbox on wbmdev1.iworld.com when they are saved. ** It's not necessary to have the project in a git repo locally. The repo is maintained on the sandbox on wmbdev1.iworld.com. ** After a file is uploaded, at the command line on the wmbdev1.iworld.com server: <syntaxhighlight lang="bash"> $ git status -s $ # the response should include the file that was uploaded </syntaxhighlight>
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information