recentpopularlog in

kme : incantation   15

How to delete a remote git tag? - Stack Overflow
You just need to push an 'empty' reference to the remote tag name:

git push origin :tagname

Or, more expressively, use the --delete option:

git push --delete origin tagname

If you also need to delete the local tag, use:

git tag -d tagname
dammitbrain  git  commandline  incantation  devel  scm  solution 
september 2015 by kme
git show - List all the files for a commit in Git - Stack Overflow
One way (preferred):

$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js

Another way:

$ git show --pretty="format:" --name-only bd61ad98

index.html
javascript/application.js
javascript/ie6.js

The --no-commit-id suppresses the commit ID output.
The --pretty argument specifies an empty format string to avoid the cruft at the beginning.
The --name-only argument shows only the file names that were affected (Thanks Hank).
The -r argument is to recurse into sub-trees
git  incantation  solution  configfile  movein 
august 2015 by kme
awk to split on all characters in a string
s="blah" echo $s | awk 'BEGIN{FS="";OFS="\n"}{$1=$1}1'
awk  commandline  incantation  textprocessing 
february 2015 by kme
git push is failed due to RPC failure (result=56) | Flying to Moon
The error is "error: RPC failed; result=56, HTTP code = 0" and the solution is:
The problem is most likely because your git buffer is too low.

You will need to increase Git’s HTTP buffer by setting the git config var “http.postBuffer” to 524288000.

1
git config http.postBuffer 524288000
git  errormessage  solution  incantation  networking 
february 2015 by kme
Throw away local commits in git - Stack Overflow
A 'git rebase -i HEAD~4' just ended up staring at me blankly, so what actually worked was:
Simply delete your local master branch and recreate it like so:

git branch -D master
git checkout origin/master -b master


(no commits had been pushed to 'origin' at that point).
git  rebase  oops  gitfu  incantation  devel  sourcecontrol  versioncontrol  solution 
january 2015 by kme
branch - How can I search Git branches for a file or directory? - Stack Overflow
git log will find it for you:

% git log --all -- somefile

commit 55d2069a092e07c56a6b4d321509ba7620664c63
Author: Dustin Sallings <dustin@spy.net>
Date: Tue Dec 16 14:16:22 2008 -0800

added some file
% git branch --contains 55d2069
otherbranch

Supports globbing, too:

% git log --all -- '**/my_file.png'

The single quotes are necessary (at least if using the bash shell) so the shell passes the glob pattern to git unchanged, instead of expanding it (just like with Unix find).
git  incantation  maybesolution  searchandindex  devel 
january 2015 by kme
How to lock screen on MacBook Air? - Ask Different
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
mac  osx  lockscreen  incantation  solution  hotkey  shortcutkey  10.8 
october 2014 by kme
python - how do i do a range regex in ruby like awk /start/,/stop/ - Stack Overflow
I want to do an AWK-style range regex like this:

awk ' /hoststatus/,/\}/' file


To do a sed-style line number pattern, use NR==<start>,NR==<end> { whatever }.
awk  solution  incantation  shellscripting  textprocessing 
august 2014 by kme
Latex Figures appear before text in pandoc markdown | Question and Answer [http://qandasys.info/]
Maybe solution: use an external style with Pandoc conaining "usepackage{graphicx}"

Where the figures in the Markdown document are wrapped in something like:

# Document with figures

This document have figures but they appear before the title

begin{figure}
centering
{includegraphics[width=2.5in]{some_figure.png}}
caption{Comparing Dq from different p-model}
end{figure}
pandoc  markdown  latex  incantation  maybesolution 
july 2014 by kme
url - How to change a remote repository URI using Git? - Stack Overflow
Update: Thanks to @mawolf for pointing out there is an easy way with recent git versions (post Feb, 2010):

git remote set-url origin ssh://newhost.com/usr/local/gitroot/myproject.git

See the man page for details.

If you’re on an older version, then try this:

As a caveat, this works only as it is the same server, just with different names.

Assuming that the new hostname is newhost.com, and the old one was oldhost.com, the change is quite simple.

Edit the .git/config file in your working directory. You should see something like:

[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://oldhost.com/usr/local/gitroot/myproject.git

Change oldhost.com to newhost.com, save the file and you’re done.
git  incantation  solution 
january 2014 by kme
git ready » list remote branches
$ git remote show origin
* remote origin
URL: git://github.com/rails/rails.git
Remote branch merged with 'git pull' while on branch master
master
Tracked remote branches
1-2-stable 2-0-stable 2-1-stable 2-2-stable 3-0-unstable master
git  incantation  solution 
january 2014 by kme

Copy this bookmark:





to read