User Tools

Site Tools


sysadmin_misc:git

Git

  • Importing commits from one repo to another : (cd ../masterfiles/; git format-patch –stdout origin/master) | git am
  • Rewrite the commit history to remove a file : git filter-branch –index-filter “git rm –cached –ignore-unmatch ${file}” –prune-empty –tag-name-filter cat – –all
sysadmin_misc/git.txt · Last modified: 2018/09/25 15:00 (external edit)