The Challenge:
Git it Write allows to publish the markdown files present in a Github repository to your WordPress site. So with this plugin, whenever the files are added, updated in the repository the WordPress post will be added, updated accordingly.
- Git-it (Original, retired) Hi, there! This is the repository for the original Git-it, the version that runs in your terminal. There is a new version, a desktop app, which lives at jlord/git-it-electron. This one still works and you can use it if you want. But I won't be actively maintaining it as I'll be focusing on the desktop version going.
- Git(/ɡɪt/)is software for tracking changes in any set of files, usually used for coordinating work among programmerscollaboratively developing source codeduring software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems).
- Delivery & Pickup Options - 18 reviews of Come N Git It 'Best restaurant in town for home-style food and breakfast. Love the beef stew. Nice atmosphere and very reasonably priced.'
Create a new branch on your fork for your contribution.
Branches
Git repositories use branches to isolate work when needed. It's common practice when working on a project or with others on a project to create a branch to keep your changes in until they are ready. This way you can do your work while the main, commonly named 'master', branch stays stable. When your branch is ready, you merge it back into 'master'.
For a great visualization on how branches work in a project, see this GitHub Guide: guides.github.com/overviews/flow
GitHub Pages
GitHub will automatically serve and host static website files in branches named 'gh-pages'. Since the project you forked creates a website, its main branch is 'gh-pages' instead of 'master'. All sites like this can be found using this pattern for the URL:
http://githubusername.github.io/repositoryname
Step: Create a branch
When you create a branch, Git copies everything from the current branch you're on and places it in the branch you've requested.
Type git status
to see what branch you're currently on (it should be 'gh-pages').
Create a branch and name it 'add-<username>', where 'username' is your username. For instance, 'add-jlord'. Branches are case-sensitive so name your branch exactly the way your GitHub name appears.
$ git branch <BRANCHNAME>
Now you have a branch with a new name identical to 'gh-pages'.
To go into that branch and work on it, similar to using cd
to change directory in terminal, you checkout a branch. Go onto your new branch:
$ git checkout <BRANCHNAME>
Step: Create a new file
Back to the text editor:
- Create a new file named 'add-<USERNAME>.txt', where 'username' is your username. For instance, 'add-jlord.txt'.
- Then, just write your GitHub username in it, that's it and that's all. For instance, I'd type 'jlord'.
- Save this file in the 'contributors' folder in Patchwork: Patchwork/contributors/add-yourusername.txt
- Next, check in your changes!
Step: Check-in
Go through the steps for checking in a project:
$ git status
$ git add <FILENAME>
$ git commit -m '<commit message>'
Well Git It
Now push your update to your fork on GitHub:
$ git push origin <BRANCHNAME>
Verify with
git-it verify
Go to the next challenge
git-it
Git It Up Dance
Didn't Pass?
File NOT in contributors folder
The file you create should inside the existing 'contributors' folder in the Patchwork repository. If you put it somewhere else, simply use Finder or Windows Explorer to move your file into the folder. You can check git status
again and you'll find it sees your changes. Stage and then commit 'all' (-A) of these changes (additions and deletions) with the commands below.
$ git add -A
Github Desktop App
$ git commit -m 'move file into contributors folder'
Branch name expected: _____
The branch name should match your user name exactly. To change your branch name:
$ git branch -M <NEWBRANCHNAME>
When you've made your updates, verify again!
Tips
- You can create and switch to a branch in one line:
$ git checkout -b <BRANCHNAME>
- Create a new branch:
$ git branch <BRANCHNAME>
- Move onto a branch:
$ git checkout <BRANCHNAME>
- List the branches:
$ git branch
- Rename a branch you're currently on:
$ git branch -m <NEWBRANCHNAME>
- Verify what branch you're working on
$ git status
Army:hoooah
Sista's:git it gurrrl
Git-it Verify
Apr 21 trending
Git-it Tutorial
- 1. Watermelon Sugar
- 2. Ghetto Spread
- 3. Girls who eat carrots
- 4. sorority squat
- 5. Durk
- 6. Momala
- 7. knocking
- 8. Dog shot
- 9. sputnik
- 10. guvy
- 11. knockin'
- 12. nuke the fridge
- 13. obnoxion
- 14. Eee-o eleven
- 15. edward 40 hands
- 16. heels up
- 17. columbus
- 18. ain't got
- 19. UrbDic
- 20. yak shaving
- 21. Rush B Cyka Blyat
- 22. Pimp Nails
- 23. Backpedaling
- 24. Anol
- 25. got that
- 26. by the way
- 27. Wetter than an otter's pocket
- 28. soy face
- 29. TSIF
- 30. georgia rose