Skip to content

Commit 764cb08

Browse files
authored
add gifs to readme
1 parent 91a766e commit 764cb08

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# HowToTweetEveryCommit
2-
have you ever wanted to lose all of your followers by tweeting every single commit message to the world? based off: https://gist.github.com/kylefrost/f3841e76749dc64f4b5e
2+
have you ever wanted to lose all of your followers by tweeting every single commit message to the world?
3+
4+
adapted from: https://gist.github.com/kylefrost/f3841e76749dc64f4b5e
5+
6+
changed to do the actual twitter post in python using `Tweepy` because the oauth-sign and http-post install from tar.gz was giving me problems and python is just easier. hopefully this makes it a bit more usable for someone else. enjoy!
7+
38

49

510
1. Get your developer tokens from https://apps.twitter.com/ and make sure your permissions are set to "Read and Write"
@@ -14,6 +19,8 @@ https://www.slickremix.com/docs/how-to-get-api-keys-and-tokens-for-twitter/
1419

1520
3. Go to the local repository that you want to have commits tweeted from and find the `.git` folder. Note that most operating systems have folders that start with "." hidden. To unhide folders on Mac OSX press `Command+Shift+.`
1621

22+
![unhide_hidden_folders](http://g.recordit.co/vgQZDrphXW.gif)
23+
1724
4. Place the 2 files `post-commit` and `post_commit_hook.py` from this repository into the `your_repo/.git/hooks/` directory
1825

1926
5. Make the `post-commit` file executable by running `chmod a+x post-commit` from within `your_repo/.git/hooks/` directory
@@ -28,4 +35,4 @@ https://www.slickremix.com/docs/how-to-get-api-keys-and-tokens-for-twitter/
2835
Line 5: export PATH=$PATH:~/Desktop/Code/MyCodeRepository/.git/hooks
2936
3037
Line 28: python ~/Desktop/Code/MyCodeRepository/.git/hooks/post_commit_hook.py $tweet
31-
```
38+
```

0 commit comments

Comments
 (0)