Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aw-tech:github [2013/11/06 22:15] (current)
fsckd from Redmine
Line 1: Line 1:
 +====== Github ======
  
 +Arch Linux Women has a github account located at https://​github.com/​archwomen We use the git repositories located there for backing up site data and server configuration. Below are a few tutorials on using github with the VPS.
 +
 +===== How to Create a new Github repository called hello-world =====
 +
 +1. Make a new repository in https://​github.com/​archowmen named hello-world
 +
 +2. Cd to the directory where your git repo will be
 +<​code>​cd /​hello-world</​code>​
 +
 +3. Initiate git
 +<​code>​git init</​code>​
 +
 +4. Create a readme file
 +<​code>​touch README.txt</​code>​
 +
 +5. Edit the readme with your favorite text editor and add some information on your project as well as contact info
 +
 +6. Add the readme to the local git repo
 +<​code>​git add README.txt</​code>​
 +
 +7. Commit your changes to the new local repository and edit the commit log
 +<​code>​git commit</​code>​
 +
 +8. Connect your local git to the remote git repository
 +<​code>​git remote add origin https://​github.com/​archwomen/​hello-world.git</​code>​
 +
 +9. Push your readme to the remote server'​s master branch
 +<​code>​git push origin master</​code>​
 +
 +===== How to Push Changes to Remote Git Server =====
 +
 +1. Make changes to the files you want to change
 +
 +2. add the files to your local git:
 +<​code>​git add -A</​code>​
 +
 +3. Commit the changes and edit the commit log
 +<​code>​git commit</​code>​
 +
 +4. Push your changes to the remote git server
 +<​code>​git push</​code>​
 +
 +===== How to download files from a git repository =====
 +
 +1. cd to the directory where you will keep the files
 +<​code>​cd ~/​git</​code>​
 +
 +2. Clone the remote git repository to your local machine
 +<​code>​git clone https://​github.com/​archwomen/​hello-world.git</​code>​

aw-tech/github.txt · Last modified: 2013/11/06 22:15 by fsckd