Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged git



« Prev 1 2 3
Show a colored and meaningful view of a GIT repository in the shell
0 1005 posted 7 years ago by rm1984
For git-flow style workflow where you prefix branch names with initials "sc/branchname"
0 608 posted 10 years ago by eighteyes
How to obtain all the commits that occurred between two dates
0 859 posted 10 years ago by satie83
customized version of Sexy Bash Prompt
1 980 posted 11 years ago by oxnard
I am using git and working on master branch. This branch has a file called app.js . I have an experiment branch in which I made a bunch of changes and tons of commit. Now I want to bring all the changes done only to app.js from experiment to maste...
0 836 posted 11 years ago by satie83
I have a Git repository with few branches and dangling commits. I would like to search all such commits in repository for a specific string.
0 766 posted 11 years ago by satie83
You’ll receive a list of your stale remote-tracking branches. If you run it without –dry-run option, it will remove them for you.
0 701 posted 11 years ago by satie83
It's necessary that the commit hasn't pushed by anyone
0 606 posted 11 years ago by satie83
This shows the local and remote branches along with the most recent commit for each branch.
0 837 posted 11 years ago by satie83
Hash of the commit which you want to show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
0 1125 posted 11 years ago by satie83
how to make the Git remote repository read-only by configuring a non-functional push URL
0 679 posted 11 years ago by m1b
How do you make an existing git branch track a remote branch
0 738 posted 11 years ago by satie83
0 617 posted 11 years ago by satie83
0 635 posted 11 years ago by satie83
I want to get a list of all the branches in a Git repository with the "freshest" branches at the top, where the "freshest" branch is the one that's been committed to most recently (and is, therefore, more likely to be one I want to pay attention to).
0 672 posted 11 years ago by satie83
A crude script to query the GitHub API for a given Organisation, and backup its repositories and associated members forks.
0 885 posted 12 years ago by slinky
http://yuji.wordpress.com/2010/06/11/git-delete-remote-branch/
1 834 posted 12 years ago by beneberle
Combine multiple smaller incremental commits into larger ones, perfect for encouraging you to commit often while enabling you to summarize a day's work into one, or more, simplified commit. WARNING: Only do this on commits that haven’t been push...
0 696 posted 12 years ago by beneberle
I create this script which let me add the gitk in the Programming Application menu in my gnome this way I don't need to open a shell and go to the repository base to view the rep tree
0 615 posted 12 years ago by ferro
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0 839 posted 12 years ago by luizlopes
Shows you the full contents of any file at any time in history
0 683 posted 12 years ago by therobot
"-n" just shows you what will be deleted. Replace it with "-f" to actually clean your repository
0 612 posted 12 years ago by limepix
Restore a deleted file within the git repo
1 621 posted 12 years ago by Glycerine
Now when you do a git commit without specifying a commit message, TextMate will pop-up and allow you to enter a commit message in it. When you save the file and close the window, the commit will go through as normal. (If you have another text editor...
0 1088 posted 12 years ago by magicrebirth
0 540 posted 12 years ago by limepix
Useful when managing a bunch of submodules.
0 432 posted 12 years ago by iloveitaly
0 427 posted 12 years ago by craig0990
run this in git bash to see a pretty blame
0 578 posted 12 years ago by root_hacker
« Prev 1 2 3