From 521fb3dc5de606114ac5cebbb654336492d7461f Mon Sep 17 00:00:00 2001 From: Cameron McEfee Date: Fri, 25 Feb 2011 13:26:21 -0800 Subject: commit before deleting the 'explain it' styles --- _posts/2011-02-16-create-a-repo.markdown | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to '_posts/2011-02-16-create-a-repo.markdown') diff --git a/_posts/2011-02-16-create-a-repo.markdown b/_posts/2011-02-16-create-a-repo.markdown index 3cd470a..ac8af10 100644 --- a/_posts/2011-02-16-create-a-repo.markdown +++ b/_posts/2011-02-16-create-a-repo.markdown @@ -14,11 +14,11 @@ Every time you push your commits to GitHub, they get stored in a repository (a.k 1. Create a new repo - Click “New Repository + Click “New Repository. Click “New Repository - Fill out the information on this page. When you’re done, click “Create Repository” + Fill out the information on this page. When you’re done, click “Create Repository.” Fill in the info @@ -33,11 +33,11 @@ While a README isn’t a required part of a GitHub repo, it is a good idea t In the prompt, type the following code:
-	$ mkdir ~/Hello-WorldCreates a folder for your project called "Hello-World" in your user folder
-	$ cd ~/Hello-WorldChanges the active directory in the prompt to your newly created folder
-	$ git initSets up the necessary Git files
-	Initialized empty Git repository in /Users/octocat/Hello-World/.git/
-	$ touch READMECreates a file called "README" in your Hello-World folder
+	$ mkdir ~/Hello-WorldCreates a folder for your project called "Hello-World" in your user folder
+	$ cd ~/Hello-WorldChanges the active directory in the prompt to your newly created folder
+	$ git initSets up the necessary Git files
+	Initialized empty Git repository in /Users/your_user_directory/Hello-World/.git/
+	$ touch READMECreates a file called "README" in your Hello-World folder
 	
Open the new README file found in your Hello-World folder in a text editor and add the text “Hello World!.” When you are finished, save and close the file. @@ -47,15 +47,15 @@ While a README isn’t a required part of a GitHub repo, it is a good idea t Now that you have your README set up, it's time to commit it. A commit is essentially a snapshot of all the files in your project at a particular point in time. In the prompt, type the following code:
-	$ git add READMEStages your README file, adding it to the list of files to be committed
-	$ git commit -m 'first commit'Commits your files, adding the message "first commit"
+	$ git add READMEStages your README file, adding it to the list of files to be committed
+	$ git commit -m 'first commit'Commits your files, adding the message "first commit"
 	
The code above executes actions locally, meaning you still haven’t done anything on GitHub yet. To connect your local repository to your GitHub account, you will need to set a remote for your repo and push your commits to it:
-	$ git remote add origin git@github.com:octocat/Hello-World.gitSets the origin for the Hello-World repo
-	$ git push origin masterSends your commit to GitHub
+	$ git remote add origin git@github.com:username/Hello-World.gitSets the origin for the Hello-World repo
+	$ git push origin masterSends your commit to GitHub
 	
Now if you look at your repository on GitHub, you will see your README has been added to it. -- cgit v1.3.1