4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
    Type 1 or more characters for results.
    Links per page: 20 50 100
    ◄Older
    page 2 / 6
    Newer►
    106 results tagged git x
    • thumbnail
      Git aliases I can't live without – Michał Konarski
      November 8, 2018 at 5:39:13 PM GMT+1 - permalink - archive.org - http://mjk.space/git-aliases-i-cant-live-without/
      git
    • thumbnail
      GitHub - jesseduffield/lazygit: simple terminal UI for git commands
      August 7, 2018 at 9:33:55 AM GMT+2 - permalink - archive.org - https://github.com/jesseduffield/lazygit
      git
    • thumbnail
      Git Alias to Show Affected Files in Last N Commits (Example)

      Add this to your user's ~/.gitconfig under [alias] to make it globally available:

      lsch = "!f() { git diff --name-status -r "HEAD~$1"; }; f"

      You can invoke this to retrieve all affected files in the last 7 commits like so:

      $ git lsch 7

      May 3, 2018 at 3:11:34 PM GMT+2 - permalink - archive.org - https://coderwall.com/p/8rtfgg/git-alias-to-show-affected-files-in-last-n-commits
      alias git
    • thumbnail
      Git push rejected after feature branch rebase - Stack Overflow

      Instead of using -f or --force developers should use

      --force-with-lease

      Why? Because it checks the remote branch for changes which is absolutely a good idea. Let's imagine that James and Lisa are working on the same feature branch and Lisa has pushed a commit. James now rebases his local branch and is rejected when trying to push. Of course James thinks this is due to rebase and uses --force and would rewrite all Lisa's changes. If James had used --force-with-lease he would have received a warning that there are commits done by someone else. I don't see why anyone would use --force instead of --force-with-lease when pushing after a rebase.

      January 25, 2018 at 10:50:40 AM GMT+1 - permalink - archive.org - https://stackoverflow.com/questions/8939977/git-push-rejected-after-feature-branch-rebase
      git push rebase
    • Note: rebase edit commit delete file

      git rebase -i $parent_hash
      git rm file
      git commit --amend
      git rebase --continue

      November 1, 2017 at 10:29:01 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?13Rz2Q
      git
    • thumbnail
      How to find/identify large files/commits in Git history? - Stack Overflow

      he Base Script

      This bash "one-liner" displays all blob objects in the repository, sorted from smallest to largest.
      For my sample repo, it ran about 100 times faster than the other ones found here.

      git rev-list --objects --all \
      | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
      | awk '/^blob/ {print substr($0,6)}' \
      | sort --numeric-sort --key=2 \
      | cut --complement --characters=13-40 \
      | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest

      This will generate nice human-readable output like this:

      ...
      0d99bb931299 530KiB path/to/some-image.jpg
      2ba44098e28f 12MiB path/to/hires-image.png
      bd1741ddce0d 63MiB path/to/some-video-1080p.mp4

      Filtering

      To achieve further filtering, insert any of the following lines before the sort line.

      To exclude files that are present in HEAD, insert the following line:

      | grep -vF "$(git ls-tree -r HEAD | awk '{print $3}')" \

      To show only files exceeding given size (e.g. 1 MiB = 220 B), insert the following line:

      | awk '$2 >= 2^20' \

      Output for Computers

      To generate output that's more suitable for further processing by computers, omit the last two lines of the base script. They do all the formatting. This will leave you with something like this:

      ...
      0d99bb93129939b72069df14af0d0dbda7eb6dba 542455 path/to/some-image.jpg
      2ba44098e28f8f66bac5e21210c2774085d2319b 12446815 path/to/hires-image.png
      bd1741ddce0d07b72ccf69ed281e09bf8a2d0b2f 65183843 path/to/some-video-1080p.mp4

      September 27, 2017 at 11:53:28 AM GMT+2 - permalink - archive.org - https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history
      blob git
    • thumbnail
      List remote Git branches and the last commit date for each branch. Sort by most recent commit date.

      for branch in git branch -r | grep -v HEAD;do echo -e git show --format="%ci %cr" $branch | head -n 1 \t$branch; done | sort -r

      June 27, 2017 at 4:41:12 PM GMT+2 - permalink - archive.org - https://gist.github.com/jasonrudolph/1810768
      git
    • BFG Repo-Cleaner by rtyley

      To clean old file in repo

      May 24, 2017 at 2:34:10 PM GMT+2 - permalink - archive.org - https://rtyley.github.io/bfg-repo-cleaner/
      clean git repo
    • thumbnail
      Get the short git version hash - Stack Overflow

      git rev-parse --short HEAD

      March 17, 2017 at 10:54:33 AM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/5694389/get-the-short-git-version-hash
      git rev short
    • The git pickaxe

      Or "how to search text in git diff history"
      git log -p -S "string"

      February 23, 2017 at 10:40:45 AM GMT+1 * - permalink - archive.org - http://www.philandstuff.com/2014/02/09/git-pickaxe.html
      git log pickaxe search
    • Note: git hook to have issue number in commit message

      cat prepare-commit-msg
      NAME=$(git branch | grep '' | sed 's/ //'|cut -d'/' -f2|cut -d'-' -f1,2)
      echo "$NAME $(cat "$1")" > "$1"

      for dir in $(ls); do cp prepare-commit-msg $dir/.git/hooks/prepare-commit-msg; done

      !/bin/sh

      text=" [FIX] ()
      🔄 [MOD] ()
      ✅5 [ADD] ()
      🔀 [TEST] ()
      [DOC] ()"

      echo "$text $(cat "$1")" > "$1"

      February 14, 2017 at 3:51:37 PM GMT+1 * - permalink - archive.org - https://links.infomee.fr/?GZFLaQ
      git hook
    • thumbnail
      Undoing a git rebase - Stack Overflow

      The easiest way would be to find the head commit of the branch as it was immediately before the rebase started in the reflog...

      git reflog

      and to reset the current branch to it (with the usual caveats about being absolutely sure before reseting with the --hard option).

      Suppose the old commit was HEAD@{5} in the ref log:

      git reset --hard HEAD@{5}

      February 13, 2017 at 12:27:23 PM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/134882/undoing-a-git-rebase
      git rebase
    • Git Blame: Fun with --first-parent
      December 29, 2016 at 1:37:32 PM GMT+1 - permalink - archive.org - https://git-blame.blogspot.ch/2012/03/fun-with-first-parent.html
      first git log parent
    • thumbnail
      File format | Vim Tips Wiki | Fandom powered by Wikia
      December 29, 2016 at 12:10:32 PM GMT+1 - permalink - archive.org - http://vim.wikia.com/wiki/File_format
      convert CR CRLF file format git LF vim
    • Pull Request Merge Strategies: The Great Debate - Atlassian Developers
      December 22, 2016 at 11:23:06 AM GMT+1 - permalink - archive.org - https://developer.atlassian.com/blog/2014/12/pull-request-merge-strategies-the-great-debate/
      git workflow
    • Git team workflows: merge or rebase? | Atlassian Git Tutorial

      perso je tends pour le rebase

      December 22, 2016 at 11:22:40 AM GMT+1 - permalink - archive.org - https://www.atlassian.com/git/articles/git-team-workflows-merge-or-rebase/
      git workflow
    • thumbnail
      Difference between git pull --rebase and git pull --ff-only - Stack Overflow
      What will happen if I use git pull --rebase ?

      git pull --rebase is roughly equivalent to

      git fetch
      git rebase origin/master

      i.e. your remote changes (C) will be applied before the local changes (D), resulting in the following tree

      A -- B -- C -- D

      What will happen if I use git pull --ff-only ?

      It will fail.

      git pull --ff-only corresponds to

      git fetch
      git merge --ff-only origin/master

      --ff-only applies the remote changes only if they can be fast-forwarded. From the man:

      Refuse to merge and exit with a non-zero status unless the current HEAD is already up-to-date or the merge can be resolved as a fast-forward

      Since your local and remote branches have diverged, they cannot be resolved by a fast-forward and git pull --ff-only would fail.

      December 21, 2016 at 8:45:23 AM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/25430600/difference-between-git-pull-rebase-and-git-pull-ff-only
      ff git merge
    • GitHub - git-tips/tips: Most commonly used git tips and tricks.
      December 14, 2016 at 8:43:57 AM GMT+1 - permalink - archive.org - https://github.com/git-tips/tips
      git tip tips
    • Git - how to revert multiple recent commits
      December 14, 2016 at 8:23:26 AM GMT+1 - permalink - archive.org - http://serebrov.github.io/html/2014-01-04-git-revert-multiple-recent-comments.html
      git
    • Note: inception

      I've edited my .vimrc to add fugitive plugin and commited it by using fugitive

      December 9, 2016 at 2:06:22 PM GMT+1 - permalink - archive.org - https://links.infomee.fr/?4Ww4qQ
      git vim
    Links per page: 20 50 100
    ◄Older
    page 2 / 6
    Newer►
    Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation