#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
| <?php | |
| /* | |
| * | |
| * This script will backup your web site by remotely archiving all files on the root FTP directory. | |
| * It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files. | |
| * All zip files will be stored in a directory called temporary which must be writable. | |
| * | |
| * How to use it: | |
| * - Place the script at the root of your FTP. |
| sudo apt-get remove account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty colord deja-dup deja-dup-backend-gvfs duplicity empathy empathy-common evolution-data-server-online-accounts example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-presentation-minimizer libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-ha |
| intitle:index.of .bash_history | |
| intitle:index.of .sh_history | |
| intitle:"Index of" index.html.bak | |
| intitle:"Index of" index.php.bak | |
| intitle:"Index of" index.jsp.bak | |
| intitle:"Index of" ".htpasswd" htpasswd.bak | |
| inurl:backup intitle:index.of inurl:admin | |
| "Index of /backup" | |
| intitle:"Index of" index.html~ | |
| intitle:"Index of" index.php~ |
| /** | |
| * List available attributes on product page in a drop-down selection | |
| * To avoid thousands of variation creation while the price is the same for all | |
| */ | |
| add_action('woocommerce_before_add_to_cart_button', 'list_attributes_on_product_page'); | |
| function list_attributes_on_product_page() { | |
| global $product; | |
| $attributes = $product->get_attributes(); |