Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged git



0 1630 posted 15 years ago by Roen
0 1350 posted 15 years ago by chrisramakers
Make sure it has the appropriate rights. chmod -x post-receive
0 1243 posted 15 years ago by Seich
0 1574 posted 15 years ago by ferro
0 1604 posted 15 years ago by manuelstofer
0 1676 posted 15 years ago by jmccartie
0 2104 posted 15 years ago by arunpjohny
0 1567 posted 15 years ago by titosemi
0 2793 posted 15 years ago by gerhardsletten
1 1717 posted 15 years ago by wdso
git branch will give us all the branches in the current repository and the current branch will be denoted by a * mark.
0 1884 posted 15 years ago by arunpjohny
This will display the commit difference between the origin/master branch and the current working branch
0 1879 posted 15 years ago by arunpjohny
So we use Gerrit for code reviewing and I run **git commit --amend** quite a bit, a lot of times I don\\\'t want to amend the message I just want to add my new files to my existing commit and keep working, this makes that part easier. Just add this...
0 1409 posted 15 years ago by jturmel
0 1585 posted 16 years ago by level09
If you accidentally exit while doing an interactive rebase, you can clean it with this command.
0 1685 posted 16 years ago by stayce
0 1574 posted 16 years ago by stayce
Note that you don't actually need a temporary branch, you can do this with a 'detached HEAD', but you need to take a note of the commit id generated by the git commit --amend step to supply to the git rebase command rather than using the temporary br...
0 2385 posted 16 years ago by alvarezrilla
0 1513 posted 16 years ago by kmorey
This is how to patch changes from svn into git (should work with other vcs as well).
0 1685 posted 16 years ago by narkisr
Squashing --------- WARNING: "git rebase" changes history. Be careful. Google it. git rebase --interactive HEAD~10 (then change all but the first "pick" to "squash") squash the last 10 commits into one big commit
0 2589 posted 16 years ago by jturmel
How to setup a remote git repository via SSH.
0 2058 posted 16 years ago by narkisr
Setup default ignores, aliases, colors, completion and bash prompt in Git These are to be run from Terminal.
1 1903 posted 16 years ago by alvarezrilla
0 1687 posted 16 years ago by paulbooker
Put this into your ~/.bashrc script and you should see the Git/SVN status in your prompt if your working directory is a sandbox.
0 2139 posted 16 years ago by zingo
1 1799 posted 16 years ago by craig0990