Changeset 6961
- Timestamp:
- 03/28/2018 08:35:43 PM (8 years ago)
- File:
-
- 1 edited
-
sites/trunk/wordcamp.org/.githooks/README.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/.githooks/README.md
r6860 r6961 14 14 ## git svn dcommit 15 15 16 git-svn doesn't support hooks natively, but we can use an alias instead.16 git-svn doesn't support hooks natively, but there are a few ways around that. 17 17 18 1. Add the followingto your `.gitconfig`:18 1. The simplest way is to add an alias to your `.gitconfig`: 19 19 20 20 ``` 21 21 [alias] 22 svnpush = !sh .git/hooks/pre-svn-dcommit && git s vn dcommit --interactive22 svnpush = !sh .git/hooks/pre-svn-dcommit && git stash && git svn dcommit --interactive && git stash pop 23 23 ``` 24 24 25 1. That isn't very flexible, though, since it'd run for every site. To run it only for WordCamp.org, you can create [a `git-svnpush` script](https://github.com/iandunn/dotfiles/blob/ebdb5d3d7b6d335680cf9e44544cbcbea49cf85e/bin/git-svnpush) in your `$PATH`, with executable permissions. 26 25 27 1. When you're ready to push, call `git svnpush` instead of `git svn dcommit`.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)