Tips for Git
@tipsforgit
Great tips for everyones favourite Distributed Source Control Management System. Formerly @agtad (A Git Tip A Day)
You might like
How many non-merge commits are there in my #git repo? $ git rev-list --all --count --no-merges
git tip of the day: pipe the output of `git archive branch-name` to `tar` to get a copy of the directory of the project without git!
Get a list of filenames changed in your branch, useful for determining tests to run in CI: gist.github.com/1stvamp/1b2420…
Only want to see root commits and merge commits? Give `git log --first-parent` a whirl. Interest esp. to #bzr users.
If like me you've spent any time in *gasp* bzr recently, give git-bzr-ng a go, it makes mirroring between repos easy buff.ly/1cuAPwZ
Use vim for your commit editor? Detect if you're in a commit via the filetype, which is "gitcommit", see :help filetype :help autocommand
Given a merge commit hash, you can revert it like so: git revert -m 1 <commit hash>
Want to find a merge commit? git log <oldest commit>..master --ancestry-path --merges Last one is your merge. Tomorrow we'll revert it!
[blogged] Git Precommit hook awesomeness johnkpaul.com/blog/2013/10/0… @nationjs #nationjs You should do this _now_. /cc @tbwiii @mcwhittemore
#git daemon tutorial to quickly share repository in LAN l.rw.rw/git-daemon /cc @gittips @tipsforgit
railsware.com
Taming The Git-Daemon To Quickly Share Git Repository
I was once in a hurry to share GitHub repository with a colleague who didn't have access to it and we decided to use local git-daemon. However, handling all the little quirks that would make it work...
@robmil @csswizardry @tipsforgit some nice ones there, ill add them to my own collection: gist.github.com/andycole/59276…
People have been asking me about Git aliases, so I thought I'd post some useful ones: gist.github.com/robmiller/6018… /cc @tipsforgit @csswizardry
Rebase every commit of the branch you're currently on, via @robmil: git rebase -i `git merge-base master HEAD`
So I'm planning a massive reboot of @phpweekly, who'd like to help out and be a part of it?
List branches by date: for k in `git branch|perl -pe s/^..//`;do echo -e `git show $k|head -n 1`\\t$k;done|sort -r
For when the internet dies: git config --global alias.serve daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
`git push --force` I got 99 problems but a merge conflict ain't one.
United States Trends
- 1. Jarry 6,232 posts
- 2. Skinner 7,090 posts
- 3. The Plasma 32.2K posts
- 4. #FanCashDropPromotion 1,687 posts
- 5. Edmonton 5,136 posts
- 6. Smear the Queer 3,223 posts
- 7. Kulak 8,061 posts
- 8. Oilers 6,316 posts
- 9. FINALLY DID IT 500K posts
- 10. #TSTheEndOfAnEra 4,461 posts
- 11. Good Friday 66K posts
- 12. Dubas N/A
- 13. #NXXT_PPA N/A
- 14. The WET 90.1K posts
- 15. #FursuitFriday 13.3K posts
- 16. Woody Allen 1,849 posts
- 17. #FridayVibes 5,310 posts
- 18. Our Lady of Guadalupe 17.7K posts
- 19. Murashov N/A
- 20. Stan Bowman N/A
Something went wrong.
Something went wrong.