User Tools

Site Tools


it:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
it:git [2013/07/24 13:20]
Alexander Rind Eclipse project setup step
it:git [2014/06/30 16:59]
Alexander Rind new section: Rename files throughout history
Line 91: Line 91:
 Source: http://​stackoverflow.com/​questions/​4528869/​how-do-you-attach-a-new-pull-request-to-an-existing-issue-on-github#​answer-4529172 Source: http://​stackoverflow.com/​questions/​4528869/​how-do-you-attach-a-new-pull-request-to-an-existing-issue-on-github#​answer-4529172
  
 +===== Rename files throughout history =====
 +
 +<code bash>
 +git filter-branch --index-filter '
 +git ls-files -s | \
 +sed "​s-\t.classpath-\teclipse.classpath-"​ | \
 +sed "​s-\t.project-\teclipse.project-"​ | \
 +GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && \
 +mv "​$GIT_INDEX_FILE.new"​ "​$GIT_INDEX_FILE"​
 +' HEAD
 +</​code>​
 +
 +Source: http://​www.fussylogic.co.uk/​blog/?​p=1250
 ===== Further Readings ===== ===== Further Readings =====
  
it/git.txt · Last modified: 2015/11/25 10:14 by Alexander Rind

alex @ ieg: home about me publications research