Skip to content

acwright/gitquiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Instructions

Follow these steps to Git glory! Use the command line (please)! Need help? Use the cheat sheets I gave you...

  1. Change directory to your desktop.
  2. Create a new project folder (not a rails project just an empty folder!) and call it whatever you want.
  3. Change directory into the new folder.
  4. Initialize a new git repository.
  5. Using whatever editor you choose open the folder in your editor and create the following:
  • A file called README.md. Do not add any content to this file at the moment.
  • A folder called whatever you want containing a file named your_name.txt replacing your_name with your actual name duh. Make the content of this file any text you want.
  1. Add the above files to the repository and create a commit using git.
  2. Go to your github account and create a new repository. Name it the same as your project folder name.
  3. Back in your terminal, add the newly created github repo as your local repositories remote origin. Hint: There is a line you can copy on your newly created repos page...
  4. Push your repository to github.
  5. Make a change to your README.md file, commit it and push it to Github.
  6. Your are done! Let me know you made it here...

Bonus Time:

Try the following...

  1. Fork this repo! You should see a button somewhere on this page that says fork...
  2. Now go to your github page and find the page for the repository you just forked to your account.
  3. Copy the clone url on your forked repos page. Bottom right side...
  4. Go to your terminal and change to the desktop.
  5. Use command line git and the url you just copied to clone this repository to your desktop.
  6. Change directory into the newly cloned repo.
  7. Add a file inside the your_file_goes_here directory called your_name.txt again using your own name.
  8. Git add and commit this change and push the change to Github.
  9. Now go back to your fork of this repo on your github page.
  10. Find the pull request section and open a new pull request using the new pull request button.
  11. Follow the instructions on the pull request page to complete.
  12. You're done!

About

A little pop-quiz for the Git noobs at GR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published