Welcome To Snipplr


Everyone's Recent Snippets Tagged git



« Prev 1 2 3 4
  1. FAV

    Show a colored and meaningful view of a GIT repository in the shell

    Show a colored and meaningful view of a GIT repository in the shell
    Bash 2 views posted 3 years ago by rm1984
  2. FAV

    Git log deleted line

    Git log to see deleted line
    Rails 5 views posted 5 years ago by yaworsk
  3. FAV

    GIT Bash: projects choice list

    - edit `ppath` in code header to your git projects *path*, put this code into <b>__.bashrc__</b> file and copy it into your *$HOME* dir (in Win Vista / 7 it is often *c:\Users\$YOU*) - you may want set this file as executable inside *GIT bash* <b>...
    Bash saved by 4 people 4 views posted 5 years ago by s1w
  4. FAV

    Set up a .git repository using terminal

    Set up a .git repository using terminal
    Other 4 views posted 5 years ago by flatearthcomms
  5. FAV

    Remove old branches from git

    For git-flow style workflow where you prefix branch names with initials "sc/branchname"
    Bash 5 views posted 6 years ago by eighteyes
  6. FAV

    Wordpress WP_ Settings

    This snippet is used to set some wordpress directories / paths directly to the server name.
    PHP 3 views posted 6 years ago by mralexjuarez
  7. FAV

    GIT - Get the commits that occured between two dates

    How to obtain all the commits that occurred between two dates
    Bash 6 views posted 6 years ago by satie83
  8. FAV

    git checkout remote branch

    git checkout remote branch
    Other 7 views posted 6 years ago by tzvio
  9. FAV

    git delete local branch

    git delete local branch
    Other saved by 2 people 4 views posted 6 years ago by tzvio
  10. FAV

    Git create new branch

    Git create new branch
    Other saved by 2 people 6 views posted 6 years ago by tzvio
  11. FAV

    push branch to remote - git

    Push branch to remote in git.
    Other saved by 1 person 8 views posted 6 years ago by tzvio
  12. FAV

    Deploy GIT changeset to 1and1 via sftp (phpseclib)

    Script per copiar els fitxers canviats en una revisió git al servidor remot via sftp, using PHP Secure Communications Library (phpseclib): http://sourceforge.net/projects/phpseclib/. Útil per usar amb 1and1.
    PHP 5 views posted 7 years ago by marcniko
  13. FAV

    Customized Sexy Bash Prompt - Git branch/Status

    customized version of Sexy Bash Prompt
    Bash saved by 3 people 12 views posted 7 years ago by oxnard
  14. FAV

    GIT - How to get just one file from another branch

    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...
    Bash 5 views posted 7 years ago by satie83
  15. FAV

    GIT - Search trough all commits in the repository

    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.
    Bash 5 views posted 7 years ago by satie83
  16. FAV

    GIT - List of stale remote-tracking branches

    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.
    Bash 3 views posted 7 years ago by satie83
  17. FAV

    GIT - Editing an incorrect commit message

    It's necessary that the commit hasn't pushed by anyone
    Bash 4 views posted 7 years ago by satie83
  18. FAV

    GIT - Find out which is the remote branch, which is tracked by a local branch

    This shows the local and remote branches along with the most recent commit for each branch.
    Bash 5 views posted 7 years ago by satie83
  19. FAV

    GIT - List all the files for a commit (or various commits) in git

    Hash of the commit which you want to show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
    Bash 7 views posted 7 years ago by satie83
  20. FAV

    Make git remote read-only

    how to make the Git remote repository read-only by configuring a non-functional push URL
    Bash 6 views posted 7 years ago by m1b
  21. FAV

    GIT - How to track a remote branch

    How do you make an existing git branch track a remote branch
    Bash 3 views posted 7 years ago by satie83
  22. FAV

    GIT - Undo a merge

    Bash 5 views posted 7 years ago by satie83
  23. FAV

    GIT - Switch branch without committing

    Bash 3 views posted 7 years ago by satie83
  24. FAV

    GIT - Rename a branch

    Bash 2 views posted 7 years ago by satie83
  25. FAV

    GIT - List of git branches

    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).
    Bash 5 views posted 7 years ago by satie83
  26. FAV

    Git move commit to from 'no branch'

    Reset a branch. Notably used for moving a commit from one branch to another, or fix a commit on 'no branch'
    Python 4 views posted 7 years ago by Glycerine
  27. FAV

    bash script to backup github organisation repositories and member forks

    A crude script to query the GitHub API for a given Organisation, and backup its repositories and associated members forks.
    Bash 9 views posted 7 years ago by slinky
  28. FAV

    Git prune remote and local branches

    http://yuji.wordpress.com/2010/06/11/git-delete-remote-branch/
    Bash saved by 1 person 9 views posted 7 years ago by beneberle
  29. FAV

    Git Rebase and Squash

    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...
    Bash 6 views posted 7 years ago by beneberle
  30. FAV

    adding gitk in the OS menu

    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
    Bash 1 views posted 8 years ago by ferro
« Prev 1 2 3 4